You are not logged in.
I had a binary called syncterm, and meant to delete IT - but accidentally deleted /usr/local/bin/sync. Now, Timeshift (and other things?) won't work.
How can I reinstall sync???
Thanks... learning still.
Last edited by paulie420 (2021-12-13 23:03:18)
Offline
/usr/loca/bin/ should not be populated by packages. Guessing you put a binary called "sync" in there. Just do it again.
...but why did you do that in the first place?
EDIT: post the output of
which syncIf it references some alias you defined, remove that too.
Last edited by graysky (2021-12-13 11:49:04)
Offline
Guessing you put a binary called "sync" in there. Just do it again.
No. Don't do that. Although rarely used, /usr/bin/sync is a core utility that you will mask by doing so.
Inofficial first vice president of the Rust Evangelism Strike Force
Offline
To reiterate, I installed a terminal application called syncterm, and meant to delete IT - but instead deleted some system binary in /usr/local/bin/sync... I didn't delete /usr/local/bin/syncterm.
As requested:
paulie420:/ $ which sync
which: no sync in (/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl)After doing so, when I run Timeshift, the backup utility, it fails stating:
Missing Dependancies
Commands listed below are not available on this system:
* sync
Please install required packages and try running TimeShift againI ran
yay -S timeshift
but it didn't repair the issue, so I thought it was some system binary - and can't find any info on just SYNC...
Thanks, all.
Offline
To re-iterate…
No. Don't do that. Although rarely used, /usr/bin/sync is a core utility that you will mask by doing so.
I guess you're throwing around the "local" part a bit casually here, because you clearly removed that binary (as well)
So re-install the "coreutils".
If you actually had a different binary "sync" in /usr/local/bin, nobody can help you because we cannot possibly know what that was and where it came from but in any event and as shard pointed out: that would have been a dumb idea to begin with.
@graysky, stay away from whichcraft ;-)
Offline
To re-iterate…
schard wrote:No. Don't do that. Although rarely used, /usr/bin/sync is a core utility that you will mask by doing so.
I guess you're throwing around the "local" part a bit casually here, because you clearly removed that binary (as well)
So re-install the "coreutils".
If you actually had a different binary "sync" in /usr/local/bin, nobody can help you because we cannot possibly know what that was and where it came from but in any event and as shard pointed out: that would have been a dumb idea to begin with.@graysky, stay away from whichcraft ;-)
Oops - sorry, maybe I got a part of it wrong - the 'sync' I deleted wasn't my own addition... well; it was from one of the core Arch/GNOME binaries installed when I first setup the system. I'm new, so I don't exactly know what it was - POSSIBLY I didn't delete it from /usr/local/bin , but thought so because thats where 'syncterm' lived; and I made the error by attempting to delete IT.
I can try reinstalling the coreutils package - thanks for that suggestion, thats what I was looking for...
And B00M!! That fixed it; I couldn't find a reference to 'sync' on any Arch sites - thanks for the coreutils suggestion. That was it!
And, sync does live in /usr/local/bin - at any rate, SOLVED. Thanks, all!
Offline
And, sync does live in /usr/local/bin - at any rate, SOLVED. Thanks, all!
It should not /usr/bin != /usr/local/bin , are you absolutely certain about this and if so, what's up with your paths exactly?
stat /usr/bin /usr/local /usr/local/binOffline
/usr/bin != /usr/local/bin , are you absolutely certain about this and if so, what's up with your paths exactly?
Mayhaps this is not an Arch installation?
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
It was an Arch installation. Packe coreutils was populated in /usr/local/bin - I accidentally deleted binary 'sync' instead of syncterm... this was remedied with
sudo pacman -S coreutils
After which Timeshift fired right up as desired...
Offline
You don't understand what everyone is telling you.
Arch packages, other than 'filesystem', don't put anything in /usr/local/. Period. End of story. Whatever you had in /usr/local/bin/ did NOT come from the coreutils package.
Offline
stat /usr/bin /usr/local /usr/local/bin
If you're symlinking /usr/local/bin to /usr/bin, you're doing it wrong.
If you don't do that you're either not using archlinux or coreutils didn't populate /usr/local/bin.
There're no further options.
Offline