sudo apt-get update 导致麻烦

sudo apt-get update 导致麻烦
Hit:1 http://repo.steampowered.com/steam precise InRelease
Hit:2 http://archive.ubuntu.com/ubuntu bionic InRelease                        
Hit:3 http://packages.microsoft.com/repos/vscode stable InRelease              
Hit:4 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu bionic InRelease    
Hit:5 https://deb.opera.com/opera-stable stable InRelease                      
/usr/bin/gdbus: error while loading shared libraries: libgio-2.0.so.0: cannot open shared object file: No such file or directory
appstreamcli: error while loading shared libraries: libappstream.so.4: cannot open shared object file: No such file or directory
Reading package lists... Done
E: Problem executing scripts APT::Update::Post-Invoke-Success 'if /usr/bin/test -w /var/cache/app-info -a -e /usr/bin/appstreamcli; then appstreamcli refresh-cache > /dev/null; fi'
E: Sub-process returned an error code

这就是我现在得到的

答案1

我也有同样的问题。解决方法如下:

apt install libglib2.0-0

相关内容