由于 dartvm 而无法安装新软件?

由于 dartvm 而无法安装新软件?

我最近尝试运行此命令来安装 dart vm:

$ sudo apt-get update
$ sudo apt-get install apt-transport-https
# Get the Google Linux package signing key.
$ sudo sh -c 'curl https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -'
# Set up the location of the stable repository.
$ sudo sh -c 'curl https://storage.googleapis.com/download.dartlang.org/linux/debian/dart_stable.list > /etc/apt/sources.list.d/dart_stable.list'
$ sudo apt-get update

但这并没有安装 IDE 或 Dartium 因此我运行了这个:

$ sudo add-apt-repository ppa:hachre/dart
$ sudo apt-get update
$ sudo apt-get install darteditor

但是现在,当我尝试使用终端安装任何东西时出现此错误:

You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
dartsdk : Depends: dartvm (>= 0.5.0.1+r21823-3) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

我尝试运行这个来修复它:

sudo apt-get -f remove 
sudo apt-get autoremove
sudo apt-get autoclean 
sudo apt-get remove dartvm
sudo apt-get remove darteditor
sudo apt-get remove dartsdk

我无法安装 ppa-purge,也无法删除以前的软件包,否则会出现相同的错误。有人可以帮忙吗?

答案1

修复了这个问题:

sudo dpkg --purge dartsdk
sudo apt-get update

此后一切都正常了。

相关内容