Qualcosa non va per il mio /bin/echo
comando.
sudo ls -al /bin/echo
-rwxr-xr-x 1 root utmp 0 Nov 11 18:05 /bin/echo
method1 per risolverlo:
sapevo che /bin/echo
è dentro coretils
.
Rimuovere prima i coreutils, quindi reinstallarlo di nuovo.
sudo apt-get remove coreutils
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
Non riesco a rimuoverlo, non serve a niente rimuoverlo e reinstallare coreutils?
method2 per risolverlo:
compila echo.c.
cd /tmp
sudo apt-get source coreutils
cd coreutils-8.26
/tmp/coreutils-8.26$ ./configure
./configure: line 3492: config.log: Permission denied
./configure: line 3502: config.log: Permission denied
Permettetemi di configurarlo sudo
.
sudo ./configure
configure: error: you should not run configure as root (set FORCE_UNSAFE_CONFIGURE=1 in environment to bypass this check)
Come risolvere il /bin/echo
mio debian?
# apt install --reinstall coreutils
avrebbe dovuto funzionare, no?