After reading about the lately discovered vulnerability with sudo, I decided to update to 1.8.28 manually.
I downloaded deb file from sudo.ws
and used dpkg
to install it, and it failed due to lack of dependencies.
sudo dpkg -i debs/sudo_1.8.28-1_ubu1804_i386.deb
(Reading database ... 232031 files and directories currently installed.)
Preparing to unpack .../sudo_1.8.28-1_ubu1804_i386.deb ...
Unpacking sudo:i386 (1.8.28-1) over (1.8.27-1ubuntu1.1) ...
dpkg: dependency problems prevent configuration of sudo:i386:
sudo:i386 depends on libc6.
sudo:i386 depends on libpam0g.
sudo:i386 depends on libpam-modules.
sudo:i386 depends on zlib1g.
sudo:i386 depends on libselinux1.
sudo:i386 depends on libaudit1.
dpkg: error processing package sudo:i386 (--install):
dependency problems - leaving unconfigured
Processing triggers for man-db (2.8.5-2) ...
Errors were encountered while processing:
sudo:i386
After that I can't call sudo
any more and it seems to be damaged cause I can locate it in /usr/bin/sudo
:
l /usr/bin/sudo
-rwsr-xr-x 1 root root 479K Oct 10 20:15 /usr/bin/sudo
Since there is no Root
user available on Ubuntu I was wondering if there is any solution other than rebooting as root in recovery mode
?
Update
Here is the output of type
on sudo
:
type -a sudo
sudo is /usr/bin/sudo
sudo is /bin/sudo
And pkexec
doesn't seem to be working for me (no action. Only sitting there gazing at me)
The only option left is recovery mode which I have to postpone till end of the day and I'll let you know the result.
sudo_1.8.28-1_ubu1804_i386.deb
. Chances are you are on a 64bit Ubuntu server. Runsudo apt-get upgrade
to upgrade all your pacakges, includingsudo
– hanxue Oct 15 '19 at 09:23sudo
since it can't find it. – Morteza Tourani Oct 15 '19 at 09:30zsh: no such file or directory: /usr/bin/sudo
– Morteza Tourani Oct 15 '19 at 09:34pkexec apt install sudo
doesn't show any output – Morteza Tourani Oct 15 '19 at 09:37pkexec
doesn't seem to working for me. – Morteza Tourani Oct 15 '19 at 10:56