max@max-Vostro-5568:~/Desktop$ sudo apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
snapd : Breaks: apt (< 1.6.3) but 1.6.1 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).此外,我试图消除这些问题,但自我消除会发生。
max@max-Vostro-5568:~/Desktop$ sudo apt install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
libapt-inst1.5 libapt-pkg4.12 linux-headers-5.3.0-28
linux-headers-5.3.0-28-generic linux-image-5.3.0-28-generic
linux-modules-5.3.0-28-generic linux-modules-extra-5.3.0-28-generic
python3-debconf
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
apt
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
apt
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 3,896 kB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
?] Yes, do as I say!
(Reading database ... 223329 files and directories currently installed.)
Removing apt (1.6.1) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
max@max-Vostro-5568:~/Desktop$ apt
bash: /usr/bin/apt: No such file or directory发布于 2020-04-23 18:23:54
为Ubuntu 18.04。在终端上试试这个:
For AMD64机器:
wget http://security.ubuntu.com/ubuntu/pool/main/a/apt/apt_1.6.6ubuntu0.1_amd64.deb然后跑:
sudo dpkg -i apt_1.6.6ubuntu0.1_amd64.deb英特尔Or x86机器:
wget http://security.ubuntu.com/ubuntu/pool/main/a/apt/apt_1.6.6ubuntu0.1_i386.deb然后跑:
sudo dpkg -i apt_1.6.6ubuntu0.1_i386.deb通知:
https://askubuntu.com/questions/1229873
复制相似问题