1. 程式人生 > >E: Sub-process /usr/bin/dpkg returned an error code (1)

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

linux 系統運維 ubuntu

[email protected]:~# 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)

[email protected]:~# cd /var/lib/dpkg

[email protected]:/var/lib/dpkg# sudo mv info info.bak

[email protected]:/var/lib/dpkg# sudo mkdir info


[email protected]:/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

[email protected]:/var/lib/dpkg# ls

alternatives available diversions info info.bak parts status triggers

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

[email protected]:/var/lib/dpkg# apt-get install rzsz

正在讀取軟件包列表... 完成

正在分析軟件包的依賴關系樹

正在讀取狀態信息... 完成

E: 未發現軟件包 rzsz

[email protected]:/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) ...

[email protected]:/var/lib/dpkg#


本文出自 “運維小當家” 博客,請務必保留此出處http://solin.blog.51cto.com/11319413/1950541

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