软件中心要求我修复,但出现以下错误。我该如何解决此错误?
installArchives() failed: dpkg: dependency problems prevent configuration of libmtp-dev:
libmtp-dev depends on libmtp8 (= 1.0.2-1ubuntu1); however:
Package libmtp8 is not installed.
dpkg: error processing libmtp-dev (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
Errors were encountered while processing:
libmtp-dev
Error in function:
dpkg: dependency problems prevent configuration of libmtp-dev:
libmtp-dev depends on libmtp8 (= 1.0.2-1ubuntu1); however:
Package libmtp8 is not installed.
dpkg: error processing libmtp-dev (--configure):
dependency problems - leaving unconfigured
答案1
我认为解决这个问题的最好方法是按照以下步骤进行。1.正确关闭 Ubuntu 软件商店。2.磁盘分析 3.终端,“sudo apt-get update” 4.正确重启机器。
答案2
下面的代码应该可以解决你的问题。
sudo apt-get -f install