
최근에 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
그 이후에는 모든 것이 작동했습니다.