Сделал ошибку и удалил только некоторые из файлов в / usr / lib / x86_64-linux-gnu / как восстановить файлы? [dубликат]

Прочитайте man ssh, который говорит (частично), в разделе ENVIRONMENT:

 Additionally, ssh reads ~/.ssh/environment, and adds lines of the format
 “VARNAME=value” to the environment if the file exists and users are
 allowed to change their environment.  For more information, see the
 PermitUserEnvironment option in sshd_config(5).  

И в разделе FILES см .:

 ~/.ssh/environment
         Contains additional definitions for environment variables; see
         ENVIRONMENT, above.

и

 ~/.ssh/rc
         Commands in this file are executed by ssh when the user logs in,
         just before the user's shell (or command) is started.  See the
         sshd(8) manual page for more information.

и

 /etc/ssh/sshrc
         Commands in this file are executed by ssh when the user logs in,
         just before the user's shell (or command) is started.  See the
         sshd(8) manual page for more information.
0
задан 19 December 2017 в 10:35

2 ответа

Здесь два варианта:

Вы должны попытаться исправить это с помощью debsums. Вы можете найти пропущенные файлы и переустановить их пакеты со следующими командами: sudo apt-get install debsums sudo debsums_init sudo debsums --changed --silent затем переустановите указанные пакеты вручную с помощью sudo apt-get -f install или попробуйте найти все пакеты, в которых есть файлы в / usr / lib / x86_64-linux-gnu / с dpkg -S /usr/lib/x86_64-linux-gnu/ или в сочетании с повторной установкой sudo apt-get install --reinstall `dpkg -S /usr/lib/x86_64-linux-gnu/ \ | sed 's/,/ /g' | head -c-28`
0
ответ дан 18 July 2018 в 00:53

Здесь два варианта:

Вы должны попытаться исправить это с помощью debsums. Вы можете найти пропущенные файлы и переустановить их пакеты со следующими командами: sudo apt-get install debsums sudo debsums_init sudo debsums --changed --silent затем переустановите указанные пакеты вручную с помощью sudo apt-get -f install или попробуйте найти все пакеты, в которых есть файлы в / usr / lib / x86_64-linux-gnu / с dpkg -S /usr/lib/x86_64-linux-gnu/ или в сочетании с повторной установкой sudo apt-get install --reinstall `dpkg -S /usr/lib/x86_64-linux-gnu/ \ | sed 's/,/ /g' | head -c-28`
0
ответ дан 24 July 2018 в 17:17

Другие вопросы по тегам:

Похожие вопросы: