zynqmp 黑金 --- [ubuntu] cups-dameon 报错问题解决

问题描述:

系统是ubuntu16.04不知名魔改版到arm64板子上的。出现了cups-dameon的问题。

root@ubuntu:/etc/apt# apt-get -f install
Reading package lists… Done
Building dependency tree
Reading state information… Done
Correcting dependencies… Done
The following additional packages will be installed:
cups-daemon
Suggested packages:
cups-bsd foomatic-db-compressed-ppds | foomatic-db printer-driver-hpcups
hplip cups-pdf smbclient
The following packages will be upgraded:
cups-daemon
1 upgraded, 0 newly installed, 0 to remove and 63 not upgraded.
45 not fully installed or removed.
Need to get 0 B/275 kB of archives.
After this operation, 4096 B disk space will be freed.
Do you want to continue? [Y/n] y
dpkg: warning: files list file for package ‘cloud-guest-utils’ missing; assuming package has no files currently installed
dpkg: warning: files list file for package ‘cloud-initramfs-copymods’ missing; assuming package has no files currently installed
dpkg: warning: files list file for package ‘cloud-initramfs-dyn-netconf’ missing; assuming package has no files currently installed
(Reading database … 82920 files and directories currently installed.)
Preparing to unpack …/cups-daemon_2.1.3-4ubuntu0.10_arm64.deb …
Failed to stop cups.path: Unit cups.path not loaded.
dpkg: warning: subprocess old pre-removal script returned error exit status 5
dpkg: trying script from the new package instead …
Failed to stop cups.socket: Unit cups.socket not loaded.
dpkg: error processing archive /var/cache/apt/archives/cups-daemon_2.1.3-4ubuntu0.10_arm64.deb (–unpack):
subprocess new pre-removal script returned error exit status 5
/usr/bin/deb-systemd-helper: error: unable to read cups.path
/usr/bin/deb-systemd-helper: error: unable to read cups.service
/usr/bin/deb-systemd-helper: error: unable to read cups.socket
Failed to get unit file state for cups.path: No such file or directory
cups.path is a disabled or a static unit, not starting it.
Errors were encountered while processing:
/var/cache/apt/archives/cups-daemon_2.1.3-4ubuntu0.10_arm64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

解决办法:

$ sudo mv /var/lib/dpkg/info/ /var/lib/dpkg/info_old/
$ sudo mkdir /var/lib/dpkg/info/
$ sudo apt-get update
$ sudo apt-get -f install
$ sudo mv /var/lib/dpkg/info/* /var/lib/dpkg/info_old/
$ sudo rm -rf /var/lib/dpkg/info
$ sudo mv /var/lib/dpkg/info_old/ /var/lib/dpkg/info/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值