
Recientemente intenté ejecutar este comando para instalar 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
Pero esto no instala el IDE o Dartium, así que ejecuté esto:
$ sudo add-apt-repository ppa:hachre/dart
$ sudo apt-get update
$ sudo apt-get install darteditor
Pero ahora recibo este error cuando intento usar la terminal para instalar algo:
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).
Intenté ejecutar esto para solucionarlo:
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
No puedo instalar ppa-purge y no puedo eliminar los paquetes anteriores sin recibir el mismo error. ¿Puede ayudarme alguien, por favor?
Respuesta1
Se solucionó haciendo esto:
sudo dpkg --purge dartsdk
sudo apt-get update
Todo funcionó después de esto.