실수로 삭제한 패키지 부분 복구

실수로 삭제한 패키지 부분 복구

문제를 해결하려고 시도하는 동안 /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이라고 upgrade나옵니다 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

관련 정보