首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >还原意外删除的包的一部分

还原意外删除的包的一部分
EN

Unix & Linux用户
提问于 2016-07-11 22:44:20
回答 1查看 1.7K关注 0票数 2

在试图修复问题的过程中,当我打算删除/etc/sysctl.conf时,我意外地删除了/sbin/sysctl。

当我运行sysctl时,会得到这样的错误:

代码语言:javascript
复制
The program 'sysctl' is currently not installed. You can install it by typing:
sudo apt-get install procps

当我同时尝试installupgrade时,它说的是procps is already the newest version。我也尝试过删除procps并重新安装它,但是我得到了以下错误:

代码语言:javascript
复制
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libegl1-mesa : Depends: libgbm1 (>= 7.11~1) but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

有没有办法让我从这个包中得到sysctl文件?当我试图删除procps以使它能够以这种方式工作时,是否修复了错误?

如果有关系,我在LinuxMint17.3上使用Ubuntu14.04

EN

回答 1

Unix & Linux用户

回答已采纳

发布于 2016-07-11 23:11:04

您可以将--reinstall标志用于apt-get

代码语言:javascript
复制
apt-get --reinstall install procps
票数 5
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/295253

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档