You are not logged in.

#1 2021-12-13 11:40:24

paulie420
Member
Registered: 2021-12-09
Posts: 14

[SOLVED] Deleted /usr/local/bin/sync - help?

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

#2 2021-12-13 11:47:42

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,734
Website

Re: [SOLVED] Deleted /usr/local/bin/sync - help?

/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 sync

If it references some alias you defined, remove that too.

Last edited by graysky (2021-12-13 11:49:04)

Offline

#3 2021-12-13 11:55:32

schard
Forum Moderator
From: Hannover
Registered: 2016-05-06
Posts: 2,678
Website

Re: [SOLVED] Deleted /usr/local/bin/sync - help?

graysky wrote:

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

#4 2021-12-13 12:01:59

paulie420
Member
Registered: 2021-12-09
Posts: 14

Re: [SOLVED] Deleted /usr/local/bin/sync - help?

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 again

I 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

#5 2021-12-13 12:29:57

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,374

Re: [SOLVED] Deleted /usr/local/bin/sync - help?

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 ;-)

Offline

#6 2021-12-13 14:21:14

paulie420
Member
Registered: 2021-12-09
Posts: 14

Re: [SOLVED] Deleted /usr/local/bin/sync - help?

seth wrote:

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

#7 2021-12-13 14:35:56

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,310

Re: [SOLVED] Deleted /usr/local/bin/sync - help?

paulie420 wrote:

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/bin

Offline

#8 2021-12-13 17:43:05

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,693

Re: [SOLVED] Deleted /usr/local/bin/sync - help?

V1del wrote:

/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

#9 2021-12-13 23:02:58

paulie420
Member
Registered: 2021-12-09
Posts: 14

Re: [SOLVED] Deleted /usr/local/bin/sync - help?

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

#10 2021-12-14 05:53:32

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: [SOLVED] Deleted /usr/local/bin/sync - help?

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

#11 2021-12-14 07:23:08

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,374

Re: [SOLVED] Deleted /usr/local/bin/sync - help?

V1del wrote:
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

Board footer

Powered by FluxBB