码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2017-07-25 00:56:48      阅读:441      评论:0      收藏:0      [点我收藏+]

标签:linux   系统运维   ubuntu   

root@bdyun-laptop123:~# apt-get install lrzsz

正在读取软件包列表... 完成

正在分析软件包的依赖关系树       

正在读取状态信息... 完成       

lrzsz 已经是最新的版本。

升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 7 个软件包未被升级。

有 3 个软件包没有被完全安装或卸载。

解压缩后会消耗掉 0 B 的额外空间。

您希望继续执行吗? [Y/n] y

正在设置 samba-common (2:4.1.13+dfsg-4ubuntu3.1) ...

dpkg: 处理软件包 samba-common (--configure)时出错:

 子进程 已安装 post-installation 脚本 返回错误状态 10

正在设置 grub-pc (2.02~beta2-22ubuntu1.5) ...

dpkg: 处理软件包 grub-pc (--configure)时出错:

 子进程 已安装 post-installation 脚本 返回错误状态 10

dpkg: 依赖关系问题使得 samba-common-bin 的配置工作不能继续:

 samba-common-bin 依赖于 samba-common (= 2:4.1.13+dfsg-4ubuntu3.1);然而:

  软件包 samba-common 尚未配置。


dpkg: 处理软件包 samba-common-bin (--configure)时出错:

 依赖关系问题 - 仍未被配置

因为错误消息指示这是由于上一个问题导致的错误,没有写入 apport 报告。

                                                                    在处理时有错误发生:

 samba-common

 grub-pc

 samba-common-bin

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

root@bdyun-laptop123:~# cd /var/lib/dpkg

root@bdyun-laptop123:/var/lib/dpkg# sudo mv info info.bak

root@bdyun-laptop123:/var/lib/dpkg# sudo mkdir info


root@bdyun-laptop123:/var/lib/dpkg# sudo fc-cache -fv 2>&1 | grep failed | cut -f1 -d":" | xargs -i sudo touch {} && sudo fc-cache -fv

/usr/share/fonts: caching, new cache contents: 0 fonts, 4 dirs

/usr/share/fonts/X11: caching, new cache contents: 0 fonts, 4 dirs

/usr/share/fonts/X11/Type1: caching, new cache contents: 9 fonts, 0 dirs

/usr/share/fonts/X11/encodings: caching, new cache contents: 0 fonts, 1 dirs

/usr/share/fonts/X11/encodings/large: caching, new cache contents: 0 fonts, 0 dirs

/usr/share/fonts/X11/misc: caching, new cache contents: 59 fonts, 0 dirs

/usr/share/fonts/X11/util: caching, new cache contents: 0 fonts, 0 dirs

/usr/share/fonts/cmap: caching, new cache contents: 0 fonts, 5 dirs

/usr/share/fonts/cmap/adobe-cns1: caching, new cache contents: 0 fonts, 0 dirs

/usr/share/fonts/cmap/adobe-gb1: caching, new cache contents: 0 fonts, 0 dirs

/usr/share/fonts/cmap/adobe-japan1: caching, new cache contents: 0 fonts, 0 dirs

/usr/share/fonts/cmap/adobe-japan2: caching, new cache contents: 0 fonts, 0 dirs

/usr/share/fonts/cmap/adobe-korea1: caching, new cache contents: 0 fonts, 0 dirs

/usr/share/fonts/truetype: caching, new cache contents: 1 fonts, 22 dirs

/usr/share/fonts/truetype/abyssinica: caching, new cache contents: 1 fonts, 0 dirs

/usr/share/fonts/truetype/arphic: caching, new cache contents: 8 fonts, 0 dirs

/usr/share/fonts/truetype/dejavu: caching, new cache contents: 6 fonts, 0 dirs

/usr/share/fonts/truetype/droid: caching, new cache contents: 21 fonts, 0 dirs

/usr/share/fonts/truetype/fonts-guru-extra: caching, new cache contents: 1 fonts, 0 dirs

/usr/share/fonts/truetype/freefont: caching, new cache contents: 12 fonts, 0 dirs

/usr/share/fonts/truetype/kacst: caching, new cache contents: 15 fonts, 0 dirs

/usr/share/fonts/truetype/kacst-one: caching, new cache contents: 2 fonts, 0 dirs

/usr/share/fonts/truetype/lao: caching, new cache contents: 1 fonts, 0 dirs

/usr/share/fonts/truetype/liberation: caching, new cache contents: 16 fonts, 0 dirs

/usr/share/fonts/truetype/lohit-punjabi: caching, new cache contents: 1 fonts, 0 dirs

/usr/share/fonts/truetype/nanum: caching, new cache contents: 6 fonts, 0 dirs

/usr/share/fonts/truetype/openoffice: caching, new cache contents: 1 fonts, 0 dirs

/usr/share/fonts/truetype/padauk: caching, new cache contents: 4 fonts, 0 dirs

/usr/share/fonts/truetype/sinhala: caching, new cache contents: 1 fonts, 0 dirs

/usr/share/fonts/truetype/takao-gothic: caching, new cache contents: 1 fonts, 0 dirs

/usr/share/fonts/truetype/tibetan-machine: caching, new cache contents: 1 fonts, 0 dirs

/usr/share/fonts/truetype/tlwg: caching, new cache contents: 58 fonts, 0 dirs

/usr/share/fonts/truetype/ttf-ancient-scripts: caching, new cache contents: 1 fonts, 0 dirs

/usr/share/fonts/truetype/ttf-indic-fonts-core: caching, new cache contents: 17 fonts, 0 dirs

/usr/share/fonts/truetype/ttf-khmeros-core: caching, new cache contents: 2 fonts, 0 dirs

/usr/share/fonts/truetype/ubuntu-font-family: caching, new cache contents: 13 fonts, 0 dirs

/usr/share/fonts/type1: caching, new cache contents: 0 fonts, 2 dirs

/usr/share/fonts/type1/gsfonts: caching, new cache contents: 35 fonts, 0 dirs

/usr/share/fonts/type1/mathml: caching, new cache contents: 1 fonts, 0 dirs

/usr/local/share/fonts: caching, new cache contents: 0 fonts, 0 dirs

/root/.local/share/fonts: skipping, no such directory

/root/.fonts: skipping, no such directory

Re-scanning /usr/share/fonts: caching, new cache contents: 0 fonts, 4 dirs

Re-scanning /usr/share/fonts/X11: caching, new cache contents: 0 fonts, 4 dirs

Re-scanning /usr/share/fonts/X11/encodings: caching, new cache contents: 0 fonts, 1 dirs

Re-scanning /usr/share/fonts/cmap: caching, new cache contents: 0 fonts, 5 dirs

Re-scanning /usr/share/fonts/truetype: caching, new cache contents: 1 fonts, 22 dirs

Re-scanning /usr/share/fonts/type1: caching, new cache contents: 0 fonts, 2 dirs

/var/cache/fontconfig: cleaning cache directory

/root/.cache/fontconfig: not cleaning non-existent cache directory

/root/.fontconfig: not cleaning non-existent cache directory

fc-cache: succeeded

root@bdyun-laptop123:/var/lib/dpkg# ls

alternatives  available  diversions      info   info.bak  parts         status      triggers

arch          cmethopt   diversions-old  info1  lock      statoverride  status-old  updates

root@bdyun-laptop123:/var/lib/dpkg# apt-get install rzsz

正在读取软件包列表... 完成

正在分析软件包的依赖关系树       

正在读取状态信息... 完成       

E: 未发现软件包 rzsz

root@bdyun-laptop123:/var/lib/dpkg# apt-get install lrzsz

正在读取软件包列表... 完成

正在分析软件包的依赖关系树       

正在读取状态信息... 完成       

lrzsz 已经是最新的版本。

升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 7 个软件包未被升级。

有 3 个软件包没有被完全安装或卸载。

解压缩后会消耗掉 0 B 的额外空间。

您希望继续执行吗? [Y/n] y

正在设置 samba-common (2:4.1.13+dfsg-4ubuntu3.1) ...

正在设置 grub-pc (2.02~beta2-22ubuntu1.5) ...

正在设置 samba-common-bin (2:4.1.13+dfsg-4ubuntu3.1) ...

root@bdyun-laptop123:/var/lib/dpkg# 


本文出自 “运维小当家” 博客,请务必保留此出处http://solin.blog.51cto.com/11319413/1950541

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

标签:linux   系统运维   ubuntu   

原文地址:http://solin.blog.51cto.com/11319413/1950541

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!