解决方法:
如果是卡在“正在替换 cups 1.4.4 Ubuntu6XXX”这一步的话,我有解决方法,可以使升级继续。方法如下:
出现“正在替换 cups 1.4.4XXXXXXX”时,打开终端,输入:
ps aux | grep cups
maoliangjin@maoliangjin-ThinkPad-X200:~$ ps aux | grep cups
root 1272 0.0 0.0 6792 2372 ? Ss 10:46 0:00 /usr/sbin/cupsd -C /etc/cups/cupsd.conf
root 2637 0.0 1.2 40180 36640 pts/3 Ss+ 10:48 0:00 /usr/bin/dpkg --status-fd 17 --unpack --auto-deconfigure /var/cache/apt/archives/cups_1.4.4-6ubuntu2.4_i386.deb
root 2651 0.0 0.0 1896 508 pts/3 S+ 10:48 0:00 /bin/sh /var/lib/dpkg/info/cups.prerm upgrade 1.4.4-6ubuntu2.4
root 2652 0.0 0.0 4500 1028 pts/3 S+ 10:48 0:00 stop cups
1000 9499 0.0 0.0 4016 768 pts/6 S+ 11:41 0:00 grep --color=auto cups
把 /usr/sbin/cupsd对应的线程sudo kill -9 1272
然后再到“更新管理器”再次让系统升级,然后这次升级中,继续升级一段时间又会卡住
再次输入:
ps aux | grep cups
maoliangjin@maoliangjin-ThinkPad-X200:~$ ps aux | grep cups
root 9815 0.8 0.2 11092 7432 pts/3 Ss+ 11:42 0:00 /usr/bin/dpkg --status-fd 17 --configure cups
root 9818 1.0 0.2 12272 8624 pts/3 S+ 11:42 0:00 /usr/bin/perl -w /usr/share/debconf/frontend /var/lib/dpkg/info/cups.postinst configure 1.4.4-6ubuntu2.3
root 9831 0.0 0.0 1896 584 pts/3 S+ 11:42 0:00 /bin/sh /var/lib/dpkg/info/cups.postinst configure 1.4.4-6ubuntu2.3
root 9865 0.0 0.0 4500 1024 pts/3 S+ 11:42 0:00 start cups
1000 9892 0.0 0.0 4012 768 pts/6 S+ 11:43 0:00 grep --color=auto cups
然后会看到有一行是“start cups”的,把这一行sudo kill掉,然后升级就会继续进行。