Check updates seems to be broken

My checkupdates seems to be broken:

checkupdates 
==> ERROR: Cannot fetch updates

I have reinstalled pacman-contrib but to no avail :frowning_face:

If someone knows how to fix it, please let me know. :pray:t5:

You’ll have to do some investigating.

This means that the following command failed:

fakeroot -- pacman -Sy --dbpath "$CHECKUPDATES_DB" --logfile /dev/null &> /dev/null

where $CHECKUPDATES_DB is some temporary directory. So try to make a directory, run this command with dbpath as that directory without the /dev/null redirection to see what’s the error.

1 Like

Hope I got it right. Here is the output:

fakeroot -- pacman -Sy --dbpath /home/pebcak/Downloads/checkupdates --logfile  
cut: invalid option -- ':'
cut: invalid option -- ':'
fakeroot: error while starting the `faked' daemon.
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]

That’s unusual. I have no idea why fakeroot is not working for you.

I tested it myself:

mkdir faketest
fakeroot -- pacman -Sy --dbpath ./faketest --logfile fakelog.txt 

And it all works nicely…

Try something simpler:

fakeroot ls
1 Like

Thanks for the support!

fakeroot ls gives the same output as before:


$ fakeroot ls
cut: invalid option -- ':'
cut: invalid option -- ':'
fakeroot: error while starting the `faked' daemon.
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]

What is your /bin/sh? is it Bash?

I guess so :blush:
Putting this /bin/sh in a terminal gives:
sh-5.1$

When you run

file /bin/sh                                                                                                                         0 

do you get

/bin/sh: symbolic link to bash

?

Also can I see the result of

grep cut /usr/bin/fakeroot

It should be:

FAKEROOTKEY=`echo $KEY_PID|cut -d: -f1`
PID=`echo $KEY_PID|cut -d: -f2`

Do you think I should better start another thread?

Too late, hopefully a mod fill split this into a separate thread :smiley:

1 Like
file /bin/sh 
/bin/sh: symbolic link to bash
grep cut /usr/bin/fakeroot
FAKEROOTKEY=`echo $KEY_PID|cut -d: -f1`
PID=`echo $KEY_PID|cut -d: -f2`

Looks like your output.

ps- I’ll pm moderators to split this to another thread.

Everything seems right!

Try this:

echo `echo "1:OK:3:4"|cut -d: -f2`

Yeah, it’s a stupid command, but those error message above are stupid, as well. If it returns “OK”, than that’s another thing that’s working fine.

Then try reinstalling fakeroot.

I have no idea what’s going on…

This I did already. It didn’t solve the issue. But you are on to something here:

echo echo "1:OK:3:4"|cut -d: -f2
cut: invalid option – ‘:’

It seems your cut utility is somehow broken… or there are some really non-standard shell options…

Running

cut --version

should return:

cut (GNU coreutils) 8.32

Plus some legalese.

1 Like

Does this mean that after all my cut is broken?

cut --version
cut: invalid option '--version'

Run:

which cut

What does it say?

Yeah, your cut utility is definitely broken. Wow…

1 Like

Here comes more interesting stuff:

which cut 
/home/pebcak/.local/bin/cut

:astonished:

You have a program or a script named cut in your user’s bin directory. But that shouldn’t be sourced when running from a script. You should rename that anyway…

Try running

/usr/bin/cut --version

To rename the one in your home directory:

mv "/home/pebcak/.local/bin/cut" "/home/pebcak/.local/bin/cut_custom"

Does that help?

This is turning into quite a detective story.

frog_incognito_72

3 Likes

I did now, here is the new cut:

 which cut 
/usr/bin/cut

Try again getting the version:

cut --version

Also try the silly command:

echo `echo "1:OK:3:4"|cut -d: -f2`

And ultimately:

checkupdates