Restaure parte de um pacote que foi excluído acidentalmente

1

No processo de tentar consertar um problema, eu acidentalmente apaguei / sbin / sysctl quando eu estava pretendendo excluir o /etc/sysctl.conf.

Quando eu executo sysctl , recebo o erro que diz

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

Quando eu tento os dois install e upgrade , diz procps is already the newest version . Eu também tentei remover o procps e reinstalá-lo, mas recebo este erro:

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.

Existe uma maneira de eu apenas pegar o arquivo sysctl deste pacote? Existe uma correção para o erro quando tento remover o procps para que eu possa fazê-lo funcionar dessa maneira?

Se for importante, estou no Linux Mint 17.3 Rosa com o Ubuntu 14.04

    
por eleanor.mal 12.07.2016 / 00:44

1 resposta

4

Você pode usar o sinal --reinstall para apt-get

apt-get --reinstall install procps
    
por 12.07.2016 / 01:11