Debian - Restore a Timezone File Announcing the arrival of Valued Associate #679: Cesar...

Is there a concise way to say "all of the X, one of each"?

What are the pros and cons of Aerospike nosecones?

How to deal with a team lead who never gives me credit?

Models of set theory where not every set can be linearly ordered

What is the musical term for a note that continously plays through a melody?

Is a manifold-with-boundary with given interior and non-empty boundary essentially unique?

What would be the ideal power source for a cybernetic eye?

If Jon Snow became King of the Seven Kingdoms what would his regnal number be?

Are my PIs rude or am I just being too sensitive?

Using et al. for a last / senior author rather than for a first author

Why is "Consequences inflicted." not a sentence?

List *all* the tuples!

Why are there no cargo aircraft with "flying wing" design?

What does the "x" in "x86" represent?

How do I keep my slimes from escaping their pens?

Do I really need recursive chmod to restrict access to a folder?

Right-skewed distribution with mean equals to mode?

Why did the IBM 650 use bi-quinary?

Storing hydrofluoric acid before the invention of plastics

Can inflation occur in a positive-sum game currency system such as the Stack Exchange reputation system?

What is a Meta algorithm?

What is the longest distance a 13th-level monk can jump while attacking on the same turn?

Bonus calculation: Am I making a mountain out of a molehill?

How discoverable are IPv6 addresses and AAAA names by potential attackers?



Debian - Restore a Timezone File



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
2019 Community Moderator Election Results
Why I closed the “Why is Kali so hard” questionFile corrupted, how do I reinstall packages on Debian?Changing timezone on Debian keeps Local Time in UTCLinux embedded: change time zoneChoose other timezone when install Debian?Timezone format in /etc/timezone of Debian 7Embedded Debian-Linux, no TimezoneRight Timezone - Wrong Time - DST (Debian)Why is /etc/localtime a symbolic link?Backup and Restore a Debian systemsystem-wide timezone question -red hat enterprise 7How to set half hour and 45-minute time zones without worrying about DST changes in Linux?





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







0















So, I just screwed up a timezone file on my Debian system because I pointed it as a link to /etc/localtime vs. pointing /etc/localtime to it. Specifically, /usr/share/zoneinfo/America/Puerto_Rico.



I'm obviously way too deep to reinstall the server for the sake of one file. Where can I find and restore just this one file?



I'm using SMP Debian 4.9.144-3.1 (2019-02-19) x86_64.



TIA










share|improve this question









New contributor




Codesmith is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





















  • Possible duplicate of File corrupted, how do I reinstall packages on Debian?

    – telcoM
    3 hours ago


















0















So, I just screwed up a timezone file on my Debian system because I pointed it as a link to /etc/localtime vs. pointing /etc/localtime to it. Specifically, /usr/share/zoneinfo/America/Puerto_Rico.



I'm obviously way too deep to reinstall the server for the sake of one file. Where can I find and restore just this one file?



I'm using SMP Debian 4.9.144-3.1 (2019-02-19) x86_64.



TIA










share|improve this question









New contributor




Codesmith is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





















  • Possible duplicate of File corrupted, how do I reinstall packages on Debian?

    – telcoM
    3 hours ago














0












0








0








So, I just screwed up a timezone file on my Debian system because I pointed it as a link to /etc/localtime vs. pointing /etc/localtime to it. Specifically, /usr/share/zoneinfo/America/Puerto_Rico.



I'm obviously way too deep to reinstall the server for the sake of one file. Where can I find and restore just this one file?



I'm using SMP Debian 4.9.144-3.1 (2019-02-19) x86_64.



TIA










share|improve this question









New contributor




Codesmith is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












So, I just screwed up a timezone file on my Debian system because I pointed it as a link to /etc/localtime vs. pointing /etc/localtime to it. Specifically, /usr/share/zoneinfo/America/Puerto_Rico.



I'm obviously way too deep to reinstall the server for the sake of one file. Where can I find and restore just this one file?



I'm using SMP Debian 4.9.144-3.1 (2019-02-19) x86_64.



TIA







debian symlink timezone restore






share|improve this question









New contributor




Codesmith is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




Codesmith is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited 3 hours ago







Codesmith













New contributor




Codesmith is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 3 hours ago









CodesmithCodesmith

1034




1034




New contributor




Codesmith is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Codesmith is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Codesmith is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.













  • Possible duplicate of File corrupted, how do I reinstall packages on Debian?

    – telcoM
    3 hours ago



















  • Possible duplicate of File corrupted, how do I reinstall packages on Debian?

    – telcoM
    3 hours ago

















Possible duplicate of File corrupted, how do I reinstall packages on Debian?

– telcoM
3 hours ago





Possible duplicate of File corrupted, how do I reinstall packages on Debian?

– telcoM
3 hours ago










1 Answer
1






active

oldest

votes


















2














The command you need is:



apt-get install --reinstall tzdata


Background



To know which package contains the file you damaged, you could do a



dlocate -S /usr/share/zoneinfo/America/Puerto_Rico


or



dpkg-query -S /usr/share/zoneinfo/America/Puerto_Rico


which will tell you that the file is in the package tzdata.



Once you know that, it's just a matter of telling the package manager to reinstall that package.






share|improve this answer


























  • You're a lifesaver! :D .. wish I knew more Linux

    – Codesmith
    3 hours ago












Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});






Codesmith is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f512674%2fdebian-restore-a-timezone-file%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









2














The command you need is:



apt-get install --reinstall tzdata


Background



To know which package contains the file you damaged, you could do a



dlocate -S /usr/share/zoneinfo/America/Puerto_Rico


or



dpkg-query -S /usr/share/zoneinfo/America/Puerto_Rico


which will tell you that the file is in the package tzdata.



Once you know that, it's just a matter of telling the package manager to reinstall that package.






share|improve this answer


























  • You're a lifesaver! :D .. wish I knew more Linux

    – Codesmith
    3 hours ago
















2














The command you need is:



apt-get install --reinstall tzdata


Background



To know which package contains the file you damaged, you could do a



dlocate -S /usr/share/zoneinfo/America/Puerto_Rico


or



dpkg-query -S /usr/share/zoneinfo/America/Puerto_Rico


which will tell you that the file is in the package tzdata.



Once you know that, it's just a matter of telling the package manager to reinstall that package.






share|improve this answer


























  • You're a lifesaver! :D .. wish I knew more Linux

    – Codesmith
    3 hours ago














2












2








2







The command you need is:



apt-get install --reinstall tzdata


Background



To know which package contains the file you damaged, you could do a



dlocate -S /usr/share/zoneinfo/America/Puerto_Rico


or



dpkg-query -S /usr/share/zoneinfo/America/Puerto_Rico


which will tell you that the file is in the package tzdata.



Once you know that, it's just a matter of telling the package manager to reinstall that package.






share|improve this answer















The command you need is:



apt-get install --reinstall tzdata


Background



To know which package contains the file you damaged, you could do a



dlocate -S /usr/share/zoneinfo/America/Puerto_Rico


or



dpkg-query -S /usr/share/zoneinfo/America/Puerto_Rico


which will tell you that the file is in the package tzdata.



Once you know that, it's just a matter of telling the package manager to reinstall that package.







share|improve this answer














share|improve this answer



share|improve this answer








edited 3 hours ago

























answered 3 hours ago









telcoMtelcoM

21k12553




21k12553













  • You're a lifesaver! :D .. wish I knew more Linux

    – Codesmith
    3 hours ago



















  • You're a lifesaver! :D .. wish I knew more Linux

    – Codesmith
    3 hours ago

















You're a lifesaver! :D .. wish I knew more Linux

– Codesmith
3 hours ago





You're a lifesaver! :D .. wish I knew more Linux

– Codesmith
3 hours ago










Codesmith is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















Codesmith is a new contributor. Be nice, and check out our Code of Conduct.













Codesmith is a new contributor. Be nice, and check out our Code of Conduct.












Codesmith is a new contributor. Be nice, and check out our Code of Conduct.
















Thanks for contributing an answer to Unix & Linux Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f512674%2fdebian-restore-a-timezone-file%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

Ciclooctatetraenă Vezi și | Bibliografie | Meniu de navigare637866text4148569-500570979m