Ubuntu“正在替换 cups 1.4.4 ubuntu6XXX”卡住解决办法

本文提供了一种解决Ubuntu系统升级过程中遇到的CUPS服务卡死问题的方法。通过在终端中使用特定命令杀死冲突进程,使升级能够顺利进行。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

解决方法:

如果是卡在“正在替换 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掉,然后升级就会继续进行。


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值