dpkg报错无法恢复的致命错误:libssh-gcrypt-4

执行sudo apt install时报错 dpkg报错无法恢复的致命错误:libssh-gcrypt-4
说明libssh-gcrypt-4文件坏了,查找到dpkg的libssh-gcrypt-4包删除之再更新就好

cd /var/lib/dpkg/info
ls libssh-gcrypt*

dpkg报错无法恢复的致命错误:libssh-gcrypt-4_第1张图片

sudo rm libssh-gcrypt*
sudo apt update
sudo apt upgrade
sudo apt reinstall libssh-gcrypt-4
sudo apt install gedit

cheers

你可能感兴趣的:(树莓派)