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

简介:

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# 











本文转自 运维小当家 51CTO博客,原文链接:http://blog.51cto.com/solin/1950541,如需转载请自行联系原作者
目录
相关文章
|
存储 安全 Shell
⭐⭐【Shell 命令集合 文件传输 】Linux ftp工具 使用指南
⭐⭐【Shell 命令集合 文件传输 】Linux ftp工具 使用指南
549 0
Beyond Compare 4密钥过期解决办法,超实用
Beyond Compare 4密钥过期解决办法,超实用
29910 1
|
Java 编译器 Spring
面试突击78:@Autowired 和 @Resource 有什么区别?
面试突击78:@Autowired 和 @Resource 有什么区别?
17075 6
|
网络协议 关系型数据库 MySQL
MySQL报ERROR 2002 (HY000)解决
通过上述步骤,可以有效地解决MySQL连接时出现的 `ERROR 2002 (HY000)`错误。这些步骤包括检查和启动MySQL服务、配置文件检查、套接字文件检查、日志文件分析、进程检查、防火墙设置、客户端配置和最终的MySQL重装。确保每个步骤都按顺序执行,有助于快速定位和解决问题,使MySQL服务器恢复正常运行。
9923 0
|
存储 数据采集 自然语言处理
【项目】Boost搜索引擎
【项目】Boost搜索引擎
444 0
|
Java Spring 容器
@Resource注解是什么作用,和@bean区别是什么?
@Resource注解是什么作用,和@bean区别是什么?
730 0
|
前端开发 UED
生命周期(Lifecycle):了解应用程序的生命之旅
在现代应用程序开发中,生命周期是一个关键概念,它描述了应用程序或组件的创建、更新和销毁过程。理解生命周期是构建稳健和高性能应用程序的基础。在本博客中,我们将深入研究生命周期的定义、不同类型和如何利用它来管理应用程序的行为。
752 0
|
关系型数据库 MySQL SQL
启动mysql错误ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (2)
ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (2)   1、先查看 /etc/rc.
1804 0
|
4天前
|
人工智能 自然语言处理 JavaScript
2026年Windows+Ollama本地部署OpenClaw保姆级教程:本地AI Agent+阿里云上快速搭建
2026年OpenClaw凭借本地部署、私有化运行的特性,成为打造个人智能体的核心工具,而Ollama作为轻量级本地大模型管理工具,能让OpenClaw摆脱对云端大模型的依赖,实现**本地推理、数据不泄露、全流程私有化**的智能体验。本文基于Windows 11系统,从硬件环境准备、Ollama安装与模型定制、OpenClaw部署配置、技能扩展到常见问题排查,打造保姆级本地部署教程,同时补充阿里云OpenClaw(Clawdbot)快速部署步骤,兼顾本地私有化需求与云端7×24小时运行需求,文中所有代码命令均可直接复制执行,确保零基础用户也能快速搭建属于自己的本地智能体。
5880 32

热门文章

最新文章