[英]Can't install audacity because of cordova and nodejs?
At first I just wanted to install audacity on my ubunut14.04: 首先,我只是想在ubunut14.04上安装audacity:
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.
W:GPG错误: https ://dl.bintray.com发行:由于公共密钥不可用,无法验证以下签名:NO_PUBKEY 99E82A75642AC823 W:无法获取cdrom:// Ubuntu 14.04.1 LTS Trusty Tahr -版本amd64(20140722.2)/ dists / trusty / main / binary-amd64 / Packages请使用apt-cdrom使APT识别此CD-ROM。 apt-get update cannot be used to add new CD-ROMs
apt-get更新不能用于添加新的CD-ROM
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.
W:无法获取cdrom:// Ubuntu 14.04.1 LTS Trusty Tahr-版本amd64(20140722.2)/ dists / trusty / restricted / binary-amd64 / Packages请使用apt-cdrom使APT识别此CD-ROM。 apt-get update cannot be used to add new CD-ROMs
apt-get更新不能用于添加新的CD-ROM
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.
W:无法获取cdrom:// Ubuntu 14.04.1 LTS Trusty Tahr-版本amd64(20140722.2)/ dists / trusty / main / binary-i386 / Packages请使用apt-cdrom使APT识别此CD-ROM。 apt-get update cannot be used to add new CD-ROMs
apt-get更新不能用于添加新的CD-ROM
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.
W:无法获取cdrom:// Ubuntu 14.04.1 LTS Trusty Tahr-版本amd64(20140722.2)/ dists / trusty / restricted / binary-i386 / Packages请使用apt-cdrom使APT识别此CD-ROM。 apt-get update cannot be used to add new CD-ROMs
apt-get更新不能用于添加新的CD-ROM
W: Failed to fetch http://ppa.launchpad.net/dajhorn/skype-call-recorder/ubuntu/dists/trusty/main/binary-amd64/Packages 404 Not Found
W:无法获取http://ppa.launchpad.net/dajhorn/skype-call-recorder/ubuntu/dists/trusty/main/binary-amd64/Packages 404找不到
W: Failed to fetch http://ppa.launchpad.net/dajhorn/skype-call-recorder/ubuntu/dists/trusty/main/binary-i386/Packages 404 Not Found
W:无法获取http://ppa.launchpad.net/dajhorn/skype-call-recorder/ubuntu/dists/trusty/main/binary-i386/Packages 404找不到
E: Some index files failed to download.
E:某些索引文件下载失败。 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.
您可能需要运行'apt-get -f install'来更正这些:以下软件包具有未满足的依赖项:audacity:Depends:audacity-data(= 2.1.2-1〜14.04),但不会被安装Depends :libflac ++ 6(> = 1.3.0)但不会被安装取决于:libid3tag0(> = 0.15.1b)但不会被安装取决于:liblilv-0-0(> = 0.16)。 0〜dfsg0),但不会被安装取决于:libportsmf0但不会被安装取决于:libsbsms10但不会被安装取决于:libsoxr0(> = 0.1.0)但不会被安装依赖:libsuil-0-0,但不会被安装。被依赖:libvamp-hostsdk3,但不会被安装,取决于:libwxbase3.0-0(> = 3.0.2),但不会被安装。将被安装取决于:libwxgtk3.0-0(> = 3.0.2),但不会被安装cordova-cli:取决于:nodejs-legacy,但不会被安装E:未满足的依赖关系。 Try 'apt-get -f install' with no packages (or specify a solution).
尝试不带任何软件包的“ apt-get -f install”(或指定解决方案)。
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.
将安装以下附加软件包:nodejs-legacy将安装以下新软件包:nodejs-legacy 0已升级,1已新安装,0已删除和0未升级。 41 not fully installed or removed.
41未完全安装或卸下。 Need to get 0 B/14,6 kB of archives.
需要获取0 B / 14,6 kB档案。 After this operation, 122 kB of additional disk space will be used.
执行此操作后,将使用122 kB的额外磁盘空间。 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)
[Y / n](正在读取数据库... 908633当前安装的文件和目录。)正在准备解压... / nodejs-legacy_0.10.25〜dfsg2-2ubuntu1_all.deb ...解压缩nodejs-legacy(0.10.25〜dfsg2 -2ubuntu1)... dpkg:处理归档文件/var/cache/apt/archives/nodejs-legacy_0.10.25~dfsg2-2ubuntu1_all.deb(--unpack)时出错:试图覆盖'/ usr / share / man / man1 / node.1.gz',也位于nodejs软件包0.10.37-1chl1〜trusty1中处理man-db的触发器(2.6.7.1-1ubuntu1)...处理时遇到错误:/ var / cache / apt / archives /nodejs-legacy_0.10.25~dfsg2-2ubuntu1_all.deb E:子进程/ usr / bin / dpkg返回错误代码(1)
So it seems like there is something wrong with nodejs? 如此看来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.
未安装软件包'nodejs-legacy',因此未将其删除您可能需要运行'apt-get -f install'来更正这些:以下软件包具有未满足的依赖项:cordova-cli:依赖于:nodejs,但它不会被安装依赖:nodejs-legacy,但不会被安装依赖:npm E:未满足的依赖关系。 Try 'apt-get -f install' with no packages (or specify a solution).
尝试不带任何软件包的“ apt-get -f install”(或指定解决方案)。
I ran the command apt-get -f install
again and recieved the same error like the last time I ran that command. 我再次运行了
apt-get -f install
命令,并收到了与上次运行该命令相同的错误。 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. 我也无法通过ubuntu的软件中心安装audacity。 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.
之后,我仍然无法安装audacity。 It would mention that
它会提到
To install audacity, these items must be removed: Cordova-cli
要安装audacity,必须删除以下项目: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...). 好的,我卸载了cordova-cli并尝试再次安装audacity(但是我确实需要cordova。我认为必须有另一种方式同时使用audacity和cordova cli ...)。 Still not possible.
仍然不可能。 It seems like I now can't install any new software or update my system.
看来我现在无法安装任何新软件或更新我的系统。 Help!
救命!
This is the solution: 这是解决方案:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.