誤って削除したパッケージ部分の回復

誤って削除したパッケージ部分の回復

問題を解決しようとしている間に/etc/sysctl.confを削除しようとしたときに、誤って/sbin/sysctlを削除しました。

実行するとsysctlエラーメッセージが表示されます。

The program 'sysctl' is currently not installed. You can install it by typing:
sudo apt-get install procps

両方試してみると出てきinstallます。また、procpsを削除して再インストールしてみましたが、次のエラーが発生します。upgradeprocps is already the newest version

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

おすすめ記事