恢复意外删除的包的一部分

恢复意外删除的包的一部分

在尝试解决问题的过程中,当我打算删除/etc/sysctl.conf时,我不小心删除了/sbin/sysctl。

当我运行时,sysctl我收到错误消息

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 并重新安装它,但出现此错误:

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 以便使其能够以这种方式工作时,是否可以修复该错误?

如果重要的话,我使用的是 Linux Mint 17.3 Rosa 和 Ubuntu 14.04

答案1

您可以使用该--reinstall标志apt-get

apt-get --reinstall install procps

相关内容