ICode9

精准搜索请尝试: 精确搜索
首页 > 系统相关> 文章详细

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

2022-01-11 11:59:54  阅读:240  来源: 互联网

标签:info zynqmp lib package --- 报错 var cups dpkg


问题描述:

系统是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/

标签:info,zynqmp,lib,package,---,报错,var,cups,dpkg
来源: https://blog.csdn.net/Nyiragongo/article/details/122427551

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有