简体   繁体   中英

Can't install audacity because of cordova and nodejs?

At first I just wanted to install audacity on my ubunut14.04:

sudo add-apt-repository ppa:ubuntuhandbook1/audacity

After that:

sudo apt-get update

I then got a few error messages:

W: GPG error: https://dl.bintray.com Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 99E82A75642AC823 W: Failed to fetch cdrom://Ubuntu 14.04.1 LTS Trusty Tahr - Release amd64 (20140722.2)/dists/trusty/main/binary-amd64/Packages Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs

W: Failed to fetch cdrom://Ubuntu 14.04.1 LTS Trusty Tahr - Release amd64 (20140722.2)/dists/trusty/restricted/binary-amd64/Packages Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs

W: Failed to fetch cdrom://Ubuntu 14.04.1 LTS Trusty Tahr - Release amd64 (20140722.2)/dists/trusty/main/binary-i386/Packages Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs

W: Failed to fetch cdrom://Ubuntu 14.04.1 LTS Trusty Tahr - Release amd64 (20140722.2)/dists/trusty/restricted/binary-i386/Packages Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs

W: Failed to fetch http://ppa.launchpad.net/dajhorn/skype-call-recorder/ubuntu/dists/trusty/main/binary-amd64/Packages 404 Not Found

W: Failed to fetch http://ppa.launchpad.net/dajhorn/skype-call-recorder/ubuntu/dists/trusty/main/binary-i386/Packages 404 Not Found

E: Some index files failed to download. They have been ignored, or old ones used instead.

I ignored them at first and continued:

sudo apt-get install audacity

Then I got this message:

You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies: audacity : Depends: audacity-data (= 2.1.2-1~14.04) but it is not going to be installed Depends: libflac++6 (>= 1.3.0) but it is not going to be installed Depends: libid3tag0 (>= 0.15.1b) but it is not going to be installed Depends: liblilv-0-0 (>= 0.16.0~dfsg0) but it is not going to be installed Depends: libportsmf0 but it is not going to be installed Depends: libsbsms10 but it is not going to be installed Depends: libsoxr0 (>= 0.1.0) but it is not going to be installed Depends: libsuil-0-0 but it is not going to be installed Depends: libvamp-hostsdk3 but it is not going to be installed Depends: libwxbase3.0-0 (>= 3.0.2) but it is not going to be installed Depends: libwxgtk3.0-0 (>= 3.0.2) but it is not going to be installed cordova-cli : Depends: nodejs-legacy but it is not going to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

Following the suggestion in the message I ran:

sudo apt-get -f install

I then got this message:

The following extra packages will be installed: nodejs-legacy The following NEW packages will be installed: nodejs-legacy 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 41 not fully installed or removed. Need to get 0 B/14,6 kB of archives. After this operation, 122 kB of additional disk space will be used. Do you want to continue? [Y/n] (Reading database ... 908633 files and directories currently installed.) Preparing to unpack .../nodejs-legacy_0.10.25~dfsg2-2ubuntu1_all.deb ... Unpacking nodejs-legacy (0.10.25~dfsg2-2ubuntu1) ... dpkg: error processing archive /var/cache/apt/archives/nodejs-legacy_0.10.25~dfsg2-2ubuntu1_all.deb (--unpack): trying to overwrite '/usr/share/man/man1/node.1.gz', which is also in package nodejs 0.10.37-1chl1~trusty1 Processing triggers for man-db (2.6.7.1-1ubuntu1) ... Errors were encountered while processing: /var/cache/apt/archives/nodejs-legacy_0.10.25~dfsg2-2ubuntu1_all.deb E: Sub-process /usr/bin/dpkg returned an error code (1)

So it seems like there is something wrong with nodejs? Ok, I ran this:

sudo apt-get purge nodejs-legacy nodejs

I got this error message:

Package 'nodejs-legacy' is not installed, so not removed You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies: cordova-cli : Depends: nodejs but it is not going to be installed Depends: nodejs-legacy but it is not going to be installed Depends: npm E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

I ran the command apt-get -f install again and recieved the same error like the last time I ran that command. I also tried this:

sudo apt-get autoremove
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade

..and I repeated the whole process again and again with always the same results.

I also can't install audacity via ubuntu's software center. It would say:

"New Software can't be installed, because there is a problem with the software currently installed."

..along with the option to "repair". I pressed on "repair". After that I still couldn't install audacity. It would mention that

To install audacity, these items must be removed: Cordova-cli

Ok, I uninstalled cordova-cli and tried to install audacity again (but I do need cordova. I think there has to be another way to use audacity and cordova cli at the same time...). Still not possible. It seems like I now can't install any new software or update my system. Help!

This is the solution:

  1. Right click on this: 在此处输入图片说明 then click on run the package manager.
  2. Choose Filter "broken"
  3. Select package to be removed (in my case it was cordova cli)
  4. Click on "Apply"
  5. sudo apt-get update && sudo apt-get install -f && sudo apt-get update

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM