`apt upgrade`出错

分享于 

27分钟阅读

ubuntu

  繁體

问题:

执行sudo apt upgrade时出现错误


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:


 libpulsedsp : Depends: libpulse0 (= 1:13.99.1-1ubuntu3.6) but 1:13.99.1-1ubuntu3.7 is installed


 pulseaudio : Depends: libpulse0 (= 1:13.99.1-1ubuntu3.6) but 1:13.99.1-1ubuntu3.7 is installed


 pulseaudio-module-bluetooth : Depends: libpulse0 (= 1:13.99.1-1ubuntu3.6) but 1:13.99.1-1ubuntu3.7 is installed


E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).



在输入后sudo apt --fix-broken install 它给出这个错误:


sudo apt --fix-broken install


Reading package lists... Done


Building dependency tree 


Reading state information... Done


Correcting dependencies... Done


The following additional packages will be installed:


 libpulsedsp pulseaudio pulseaudio-module-bluetooth


Suggested packages:


 pavumeter pavucontrol paman paprefs ubuntu-sounds


The following packages will be upgraded:


 libpulsedsp pulseaudio pulseaudio-module-bluetooth


3 upgraded, 0 newly installed, 0 to remove and 68 not upgraded.


5 not fully installed or removed.


Need to get 0 B/896 kB of archives.


After this operation, 8,192 B of additional disk space will be used.


Do you want to continue? [Y/n] y


dpkg: dependency problems prevent processing triggers for libglib2.0-0:i386:


 libglib2.0-0:i386 depends on zlib1g (>= 1:1.2.2); however:


 Package zlib1g:i386 is not configured yet.



dpkg: error processing package libglib2.0-0:i386 (--configure):


 dependency problems - leaving triggers unprocessed


dpkg: dependency problems prevent processing triggers for libglib2.0-0:i386:


 libglib2.0-0:i386 depends on zlib1g (>= 1:1.2.2); however:


 Package zlib1g:i386 is not configured yet.



dpkg: error processing package libglib2.0-0:i386 (--configure):


 dependency problems - leaving triggers unprocessed


dpkg: dependency problems prevent processing triggers for libglib2.0-0:i386:


 libglib2.0-0:i386 depends on zlib1g (>= 1:1.2.2); however:


 Package zlib1g:i386 is not configured yet.



dpkg: error processing package libglib2.0-0:i386 (--configure):


 dependency problems - leaving triggers unprocessed


dpkg: dependency problems prevent processing triggers for libglib2.0-0:i386:


 libglib2.0-0:i386 depends on zlib1g (>= 1:1.2.2); however:


 Package zlib1g:i386 is not configured yet.



dpkg: error processing package libglib2.0-0:i386 (--configure):


 dependency problems - leaving triggers unprocessed


No apport report written because MaxReports is reached already


 dpkg: dependency p


roblems prevent processing triggers for libglib2.0-0:i386:


 libglib2.0-0:i386 depends on zlib1g (>= 1:1.2.2); however:


 Package zlib1g:i386 is not configured yet.



dpkg: error processing package libglib2.0-0:i386 (--configure):


 dependency problems - leaving triggers unprocessed


No apport report written because MaxReports is reached already


 dpkg: dependency p


roblems prevent processing triggers for libglib2.0-0:i386:


 libglib2.0-0:i386 depends on zlib1g (>= 1:1.2.2); however:


 Package zlib1g:i386 is not configured yet.



dpkg: error processing package libglib2.0-0:i386 (--configure):


 dependency problems - leaving triggers unprocessed


No apport report written because MaxReports is reached already


 dpkg: dependency p


roblems prevent processing triggers for libglib2.0-0:i386:


 libglib2.0-0:i386 depends on zlib1g (>= 1:1.2.2); however:


 Package zlib1g:i386 is not configured yet.



dpkg: error processing package libglib2.0-0:i386 (--configure):


 dependency problems - leaving triggers unprocessed


No apport report written because MaxReports is reached already


 dpkg: dependency p


roblems prevent processing triggers for libglib2.0-0:i386:


 libglib2.0-0:i386 depends on zlib1g (>= 1:1.2.2); however:


 Package zlib1g:i386 is not configured yet.



dpkg: error processing package libglib2.0-0:i386 (--configure):


 dependency problems - leaving triggers unprocessed


No apport report written because MaxReports is reached already


 dpkg: dependency p


roblems prevent processing triggers for libglib2.0-0:i386:


 libglib2.0-0:i386 depends on zlib1g (>= 1:1.2.2); however:


 Package zlib1g:i386 is not configured yet.



dpkg: error processing package libglib2.0-0:i386 (--configure):


 dependency problems - leaving triggers unprocessed


No apport report written because MaxReports is reached already


 dpkg: dependency p


roblems prevent processing triggers for libglib2.0-0:i386:


 libglib2.0-0:i386 depends on zlib1g (>= 1:1.2.2); however:


 Package zlib1g:i386 is not configured yet.



dpkg: error processing package libglib2.0-0:i386 (--configure):


 dependency problems - leaving triggers unprocessed


No apport report written because MaxReports is reached already


 dpkg: dependency p


roblems prevent processing triggers for libglib2.0-0:i386:


 libglib2.0-0:i386 depends on zlib1g (>= 1:1.2.2); however:


 Package zlib1g:i386 is not configured yet.



dpkg: error processing package libglib2.0-0:i386 (--configure):


 dependency problems - leaving triggers unprocessed


No apport report written because MaxReports is reached already


 dpkg: dependency p


roblems prevent processing triggers for libglib2.0-0:i386:


 libglib2.0-0:i386 depends on zlib1g (>= 1:1.2.2); however:


 Package zlib1g:i386 is not configured yet.



dpkg: error processing package libglib2.0-0:i386 (--configure):


 dependency problems - leaving triggers unprocessed


No apport report written because MaxReports is reached already


 dpkg: dependency p


roblems prevent processing triggers for libglib2.0-0:i386:


 libglib2.0-0:i386 depends on zlib1g (>= 1:1.2.2); however:


 Package zlib1g:i386 is not configured yet.



dpkg: error processing package libglib2.0-0:i386 (--configure):


 dependency problems - leaving triggers unprocessed


No apport report written because MaxReports is reached already


 dpkg: dependency p


roblems prevent processing triggers for libglib2.0-0:i386:


 libglib2.0-0:i386 depends on zlib1g (>= 1:1.2.2); however:


 Package zlib1g:i386 is not configured yet.



dpkg: error processing package libglib2.0-0:i386 (--configure):


 dependency problems - leaving triggers unprocessed


No apport report written because MaxReports is reached already


 dpkg: dependency p


roblems prevent processing triggers for libglib2.0-0:i386:


 libglib2.0-0:i386 depends on zlib1g (>= 1:1.2.2); however:


 Package zlib1g:i386 is not configured yet.



dpkg: error processing package libglib2.0-0:i386 (--configure):


 dependency problems - leaving triggers unprocessed


No apport report written because MaxReports is reached already


 dpkg: dependency p


roblems prevent processing triggers for libglib2.0-0:i386:


 libglib2.0-0:i386 depends on zlib1g (>= 1:1.2.2); however:


 Package zlib1g:i386 is not configured yet.



dpkg: error processing package libglib2.0-0:i386 (--configure):


 dependency problems - leaving triggers unprocessed


No apport report written because MaxReports is reached already


 dpkg: dependency p


roblems prevent processing triggers for libglib2.0-0:i386:


 libglib2.0-0:i386 depends on zlib1g (>= 1:1.2.2); however:


 Package zlib1g:i386 is not configured yet.



dpkg: error processing package libglib2.0-0:i386 (--configure):


 dependency problems - leaving triggers unprocessed


No apport report written because MaxReports is reached already


 dpkg: dependency p


roblems prevent processing triggers for libglib2.0-0:i386:


 libglib2.0-0:i386 depends on zlib1g (>= 1:1.2.2); however:


 Package zlib1g:i386 is not configured yet.



dpkg: error processing package libglib2.0-0:i386 (--configure):


 dependency problems - leaving triggers unprocessed


No apport report written because MaxReports is reached already


 dpkg: dependency p


roblems prevent processing triggers for libglib2.0-0:i386:


 libglib2.0-0:i386 depends on zlib1g (>= 1:1.2.2); however:


 Package zlib1g:i386 is not configured yet.



dpkg: error processing package libglib2.0-0:i386 (--configure):


 dependency problems - leaving triggers unprocessed


No apport report written because MaxReports is reached already


 dpkg: dependency p


roblems prevent processing triggers for libglib2.0-0:i386:


 libglib2.0-0:i386 depends on zlib1g (>= 1:1.2.2); however:


 Package zlib1g:i386 is not configured yet.



dpkg: error processing package libglib2.0-0:i386 (--configure):


 dependency problems - leaving triggers unprocessed


No apport report written because MaxReports is reached already


 dpkg: dependency p


roblems prevent processing triggers for libglib2.0-0:i386:


 libglib2.0-0:i386 depends on zlib1g (>= 1:1.2.2); however:


 Package zlib1g:i386 is not configured yet.



dpkg: error processing package libglib2.0-0:i386 (--configure):


 dependency problems - leaving triggers unprocessed


No apport report written because MaxReports is reached already


 dpkg: dependency p


roblems prevent processing triggers for libglib2.0-0:i386:


 libglib2.0-0:i386 depends on zlib1g (>= 1:1.2.2); however:


 Package zlib1g:i386 is not configured yet.



dpkg: error processing package libglib2.0-0:i386 (--configure):


 dependency problems - leaving triggers unprocessed


No apport report written because MaxReports is reached already


 dpkg: dependency p


roblems prevent processing triggers for libglib2.0-0:i386:


 libglib2.0-0:i386 depends on zlib1g (>= 1:1.2.2); however:


 Package zlib1g:i386 is not configured yet.



dpkg: error processing package libglib2.0-0:i386 (--configure):


 dependency problems - leaving triggers unprocessed


No apport report written because MaxReports is reached already


 dpkg: dependency p


roblems prevent processing triggers for libglib2.0-0:i386:


 libglib2.0-0:i386 depends on zlib1g (>= 1:1.2.2); however:


 Package zlib1g:i386 is not configured yet.



dpkg: error processing package libglib2.0-0:i386 (--configure):


 dependency problems - leaving triggers unprocessed


No apport report written because MaxReports is reached already


 dpkg: dependency p


roblems prevent processing triggers for libglib2.0-0:i386:


 libglib2.0-0:i386 depends on zlib1g (>= 1:1.2.2); however:


 Package zlib1g:i386 is not configured yet.



dpkg: error processing package libglib2.0-0:i386 (--configure):


 dependency problems - leaving triggers unprocessed


No apport report written because MaxReports is reached already


 dpkg: dependency p


roblems prevent processing triggers for libglib2.0-0:i386:


 libglib2.0-0:i386 depends on zlib1g (>= 1:1.2.2); however:


 Package zlib1g:i386 is not configured yet.



dpkg: error processing package libglib2.0-0:i386 (--configure):


 dependency problems - leaving triggers unprocessed


No apport report written because MaxReports is reached already


 dpkg: dependency p


roblems prevent processing triggers for libglib2.0-0:i386:


 libglib2.0-0:i386 depends on zlib1g (>= 1:1.2.2); however:


 Package zlib1g:i386 is not configured yet.



dpkg: error processing package libglib2.0-0:i386 (--configure):


 dependency problems - leaving triggers unprocessed


No apport report written because MaxReports is reached already


 dpkg: dependency p


roblems prevent processing triggers for libglib2.0-0:i386:


 libglib2.0-0:i386 depends on zlib1g (>= 1:1.2.2); however:


 Package zlib1g:i386 is not configured yet.



dpkg: error processing package libglib2.0-0:i386 (--configure):


 dependency problems - leaving triggers unprocessed


No apport report written because MaxReports is reached already


 dpkg: dependency p


roblems prevent processing triggers for libglib2.0-0:i386:


 libglib2.0-0:i386 depends on zlib1g (>= 1:1.2.2); however:


 Package zlib1g:i386 is not configured yet.



dpkg: error processing package libglib2.0-0:i386 (--configure):


 dependency problems - leaving triggers unprocessed


No apport report written because MaxReports is reached already


 dpkg: dependency p


roblems prevent processing triggers for libglib2.0-0:i386:


 libglib2.0-0:i386 depends on zlib1g (>= 1:1.2.2); however:


 Package zlib1g:i386 is not configured yet.



dpkg: error processing package libglib2.0-0:i386 (--configure):


 dependency problems - leaving triggers unprocessed


No apport report written because MaxReports is reached already


 dpkg: dependency p


roblems prevent processing triggers for libglib2.0-0:i386:


 libglib2.0-0:i386 depends on zlib1g (>= 1:1.2.2); however:


 Package zlib1g:i386 is not configured yet.



dpkg: error processing package libglib2.0-0:i386 (--configure):


 dependency problems - leaving triggers unprocessed


No apport report written because MaxReports is reached already


 dpkg: dependency p


roblems prevent processing triggers for libglib2.0-0:i386:


 libglib2.0-0:i386 depends on zlib1g (>= 1:1.2.2); however:


 Package zlib1g:i386 is not configured yet.



dpkg: error processing package libglib2.0-0:i386 (--configure):


 dependency problems - leaving triggers unprocessed


No apport report written because MaxReports is reached already


 dpkg: dependency p


roblems prevent processing triggers for libglib2.0-0:i386:


 libglib2.0-0:i386 depends on zlib1g (>= 1:1.2.2); however:


 Package zlib1g:i386 is not configured yet.



dpkg: error processing package libglib2.0-0:i386 (--configure):


 dependency problems - leaving triggers unprocessed


No apport report written because MaxReports is reached already


 dpkg: dependency p


roblems prevent processing triggers for libglib2.0-0:i386:


 libglib2.0-0:i386 depends on zlib1g (>= 1:1.2.2); however:


 Package zlib1g:i386 is not configured yet.



dpkg: error processing package libglib2.0-0:i386 (--configure):


 dependency problems - leaving triggers unprocessed


No apport report written because MaxReports is reached already


 dpkg: dependency p


roblems prevent processing triggers for libglib2.0-0:i386:


 libglib2.0-0:i386 depends on zlib1g (>= 1:1.2.2); however:


 Package zlib1g:i386 is not configured yet.



dpkg: error processing package libglib2.0-0:i386 (--configure):


 dependency problems - leaving triggers unprocessed


No apport report written because MaxReports is reached already


 dpkg: dependency p


roblems prevent processing triggers for libglib2.0-0:i386:


 libglib2.0-0:i386 depends on zlib1g (>= 1:1.2.2); however:


 Package zlib1g:i386 is not configured yet.



dpkg: error processing package libglib2.0-0:i386 (--configure):


 dependency problems - leaving triggers unprocessed


No apport report written because MaxReports is reached already


 dpkg: dependency p


roblems prevent processing triggers for libglib2.0-0:i386:


 libglib2.0-0:i386 depends on zlib1g (>= 1:1.2.2); however:


 Package zlib1g:i386 is not configured yet.



dpkg: error processing package libglib2.0-0:i386 (--configure):


 dependency problems - leaving triggers unprocessed


No apport report written because MaxReports is reached already


 dpkg: dependency p


roblems prevent processing triggers for libglib2.0-0:i386:


 libglib2.0-0:i386 depends on zlib1g (>= 1:1.2.2); however:


 Package zlib1g:i386 is not configured yet.



dpkg: error processing package libglib2.0-0:i386 (--configure):


 dependency problems - leaving triggers unprocessed


No apport report written because MaxReports is reached already


 dpkg: dependency p


roblems prevent processing triggers for libglib2.0-0:i386:


 libglib2.0-0:i386 depends on zlib1g (>= 1:1.2.2); however:


 Package zlib1g:i386 is not configured yet.



dpkg: error processing package libglib2.0-0:i386 (--configure):


 dependency problems - leaving triggers unprocessed


No apport report written because MaxReports is reached already


 dpkg: dependency p


roblems prevent processing triggers for libglib2.0-0:i386:


 libglib2.0-0:i386 depends on zlib1g (>= 1:1.2.2); however:


 Package zlib1g:i386 is not configured yet.



dpkg: error processing package libglib2.0-0:i386 (--configure):


 dependency problems - leaving triggers unprocessed


No apport report written because MaxReports is reached already


 dpkg: dependency p


roblems prevent processing triggers for libglib2.0-0:i386:


 libglib2.0-0:i386 depends on zlib1g (>= 1:1.2.2); however:


 Package zlib1g:i386 is not configured yet.



dpkg: error processing package libglib2.0-0:i386 (--configure):


 dependency problems - leaving triggers unprocessed


No apport report written because MaxReports is reached already


 dpkg: dependency p


roblems prevent processing triggers for libglib2.0-0:i386:


 libglib2.0-0:i386 depends on zlib1g (>= 1:1.2.2); however:


 Package zlib1g:i386 is not configured yet.



dpkg: error processing package libglib2.0-0:i386 (--configure):


 dependency problems - leaving triggers unprocessed


No apport report written because MaxReports is reached already


 dpkg: dependency p


roblems prevent processing triggers for libglib2.0-0:i386:


 libglib2.0-0:i386 depends on zlib1g (>= 1:1.2.2); however:


 Package zlib1g:i386 is not configured yet.



dpkg: error processing package libglib2.0-0:i386 (--configure):


 dependency problems - leaving triggers unprocessed


No apport report written because MaxReports is reached already


 dpkg: dependency p


roblems prevent processing triggers for libglib2.0-0:i386:


 libglib2.0-0:i386 depends on zlib1g (>= 1:1.2.2); however:


 Package zlib1g:i386 is not configured yet.



dpkg: error processing package libglib2.0-0:i386 (--configure):


 dependency problems - leaving triggers unprocessed


No apport report written because MaxReports is reached already


 dpkg: dependency p


roblems prevent processing triggers for libglib2.0-0:i386:


 libglib2.0-0:i386 depends on zlib1g (>= 1:1.2.2); however:


 Package zlib1g:i386 is not configured yet.



dpkg: error processing package libglib2.0-0:i386 (--configure):


 dependency problems - leaving triggers unprocessed


No apport report written because MaxReports is reached already


 dpkg: dependency p


roblems prevent processing triggers for libglib2.0-0:i386:


 libglib2.0-0:i386 depends on zlib1g (>= 1:1.2.2); however:


 Package zlib1g:i386 is not configured yet.



dpkg: error processing package libglib2.0-0:i386 (--configure):


 dependency problems - leaving triggers unprocessed


No apport report written because MaxReports is reached already


 dpkg: dependency p


roblems prevent processing triggers for libglib2.0-0:i386:


 libglib2.0-0:i386 depends on zlib1g (>= 1:1.2.2); however:


 Package zlib1g:i386 is not configured yet.



dpkg: error processing package libglib2.0-0:i386 (--configure):


 dependency problems - leaving triggers unprocessed


No apport report written because MaxReports is reached already


 dpkg: dependency p


roblems prevent processing triggers for libglib2.0-0:i386:


 libglib2.0-0:i386 depends on zlib1g (>= 1:1.2.2); however:


 Package zlib1g:i386 is not configured yet.



dpkg: error processing package libglib2.0-0:i386 (--configure):


 dependency problems - leaving triggers unprocessed


No apport report written because MaxReports is reached already


 dpkg: dependency p


roblems prevent processing triggers for libglib2.0-0:i386:


 libglib2.0-0:i386 depends on zlib1g (>= 1:1.2.2); however:


 Package zlib1g:i386 is not configured yet.



dpkg: error processing package libglib2.0-0:i386 (--configure):


 dependency problems - leaving triggers unprocessed


No apport report written because MaxReports is reached already


 dpkg: dependency p


roblems prevent processing triggers for libglib2.0-0:i386:


 libglib2.0-0:i386 depends on zlib1g (>= 1:1.2.2); however:


 Package zlib1g:i386 is not configured yet.



dpkg: error processing package libglib2.0-0:i386 (--configure):


 dependency problems - leaving triggers unprocessed


No apport report written because MaxReports is reached already


 dpkg: too many err


ors, stopping


Errors were encountered while processing:


 libglib2.0-0:i386


 libglib2.0-0:i386


 libglib2.0-0:i386


 libglib2.0-0:i386


 libglib2.0-0:i386


 libglib2.0-0:i386


 libglib2.0-0:i386


 libglib2.0-0:i386


 libglib2.0-0:i386


 libglib2.0-0:i386


 libglib2.0-0:i386


 libglib2.0-0:i386


 libglib2.0-0:i386


 libglib2.0-0:i386


 libglib2.0-0:i386


 libglib2.0-0:i386


 libglib2.0-0:i386


 libglib2.0-0:i386


 libglib2.0-0:i386


 libglib2.0-0:i386


 libglib2.0-0:i386


 libglib2.0-0:i386


 libglib2.0-0:i386


 libglib2.0-0:i386


 libglib2.0-0:i386


 libglib2.0-0:i386


 libglib2.0-0:i386


 libglib2.0-0:i386


 libglib2.0-0:i386


 libglib2.0-0:i386


 libglib2.0-0:i386


 libglib2.0-0:i386


 libglib2.0-0:i386


 libglib2.0-0:i386


 libglib2.0-0:i386


 libglib2.0-0:i386


 libglib2.0-0:i386


 libglib2.0-0:i386


 libglib2.0-0:i386


 libglib2.0-0:i386


 libglib2.0-0:i386


 libglib2.0-0:i386


 libglib2.0-0:i386


 libglib2.0-0:i386


 libglib2.0-0:i386


 libglib2.0-0:i386


 libglib2.0-0:i386


 libglib2.0-0:i386


 libglib2.0-0:i386


 libglib2.0-0:i386


Processing was halted because there were too many errors.


E: Sub-process /usr/bin/dpkg returned an error code (1)



我检查了df -ih

输出:


df -ih


Filesystem Inodes IUsed IFree IUse% Mounted on


udev 476K 572 476K 1% /dev


tmpfs 487K 1.1K 486K 1% /run


/dev/sda1 15M 511K 14M 4% /


tmpfs 487K 42 487K 1% /dev/shm


tmpfs 487K 3 487K 1% /run/lock


tmpfs 487K 18 487K 1% /sys/fs/cgroup


/dev/loop0 13K 13K 0 100% /snap/core/9993


/dev/loop1 4.1K 4.1K 0 100% /snap/pycharm-community/211


tmpfs 487K 72 487K 1% /run/user/120


tmpfs 487K 89 487K 1% /run/user/1000


/dev/sdc1 125K 20 125K 1% /media/papp/34c06214-5cb6-42b6-b033-9c53b228a584


/dev/sdc2 881M 26K 881M 1% /media/papp/Merevlemez



System : POP_OS 20.04!


答案1:

sudo dpkg --configure -a

解决了这个问题。

https://pop-planet.info/forums/threads/strange-error-when-updating-in-the-terminal.1047/


答案2:

我这里可以工作:


sudo apt-get install aptitude


sudo aptitude dist-upgrade