Eu tentei instalar o Dart SDK no Ubuntu 14.04, mas isso aparentemente tinha dependências não atendidas. Eu não consegui resolver esses problemas de dependência e, pior, não consigo instalar nada usando apt-get
. Por exemplo, ao tentar instalar o Chromium, recebo:
peter@cactus:~$ sudo apt-get install chromium-browser
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
chromium-browser-l10n : Depends: chromium-browser (< 39.0.2171.65-0ubuntu0.14.04.1.1064.1~) but 41.0.2272.76-0ubuntu0.14.04.1.1076 is to be installed
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).
Quando eu tento sudo apt-get -f install
, recebo o seguinte erro:
peter@cactus:~$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
dartvm
The following NEW packages will be installed:
dartvm
0 upgraded, 1 newly installed, 0 to remove and 805 not upgraded.
2 not fully installed or removed.
Need to get 3,578 kB of archives.
After this operation, 12.2 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://ppa.launchpad.net/hachre/dart/ubuntu/ trusty/main dartvm amd64 1.9.1+r44672-0~hachre~trusty [3,578 kB]
Fetched 3,578 kB in 25s (138 kB/s)
(Reading database ... 270532 files and directories currently installed.)
Preparing to unpack .../dartvm_1.9.1+r44672-0~hachre~trusty_amd64.deb ...
Unpacking dartvm (1.9.1+r44672-0~hachre~trusty) ...
dpkg: error processing archive /var/cache/apt/archives/dartvm_1.9.1+r44672-0~hachre~trusty_amd64.deb (--unpack):
trying to overwrite '/usr/bin/dart', which is also in package dart 1.9.1-1
Errors were encountered while processing:
/var/cache/apt/archives/dartvm_1.9.1+r44672-0~hachre~trusty_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Alguma ideia de como posso consertar essa bagunça?
Aqui está a saída de apt-cache policy dart dartvm
:
dart:
Installed: 1.9.1-1
Candidate: 1.9.1-1
Version table:
*** 1.9.1-1 0
500 https://storage.googleapis.com/download.dartlang.org/linux/debian/ stable/main amd64 Packages
100 /var/lib/dpkg/status
1.8.5-1 0
500 https://storage.googleapis.com/download.dartlang.org/linux/debian/ stable/main amd64 Packages
dartvm:
Installed: (none)
Candidate: 1.9.1+r44672-0~hachre~trusty
Version table:
1.9.1+r44672-0~hachre~trusty 0
500 http://ppa.launchpad.net/hachre/dart/ubuntu/ trusty/main amd64 Packages