由于Cordova和Node.js无法安装Audacity? [英] Can't install audacity because of cordova and nodejs?
问题描述
起初,我只是想在ubunut14.04上安装audacity:
At first I just wanted to install audacity on my ubunut14.04:
sudo add-apt-repository ppa:ubuntuhandbook1/audacity
之后:
sudo apt-get update
然后我得到了一些错误消息:
I then got a few error messages:
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以使该CD-ROM被APT识别. apt-get更新无法 用于添加新的CD-ROM
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:无法获取cdrom://Ubuntu 14.04.1 LTS Trusty Tahr -发布 amd64(20140722.2)/dists/trusty/restricted/binary-amd64/Packages 请使用apt-cdrom使该CD-ROM被APT识别.合适的 更新不能用于添加新的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. apt-get update cannot be used to add new CD-ROMs
W:无法获取cdrom://Ubuntu 14.04.1 LTS Trusty Tahr -发布 amd64(20140722.2)/dists/trusty/main/binary-i386/Packages请使用 apt-cdrom以使该CD-ROM被APT识别. 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. apt-get update cannot be used to add new CD-ROMs
W:无法获取cdrom://Ubuntu 14.04.1 LTS Trusty Tahr -发布 amd64(20140722.2)/dists/trusty/restricted/binary-i386/Packages 请使用apt-cdrom使该CD-ROM被APT识别.适当的 更新不能用于添加新的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. apt-get update cannot be used to add new CD-ROMs
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-amd64/Packages 404 Not Found
W:获取失败 http://ppa.launchpad .net/dajhorn/skype-call-recorder/ubuntu/dists/trusty/main/binary-i386/Packages 找不到404
W: Failed to fetch http://ppa.launchpad.net/dajhorn/skype-call-recorder/ubuntu/dists/trusty/main/binary-i386/Packages 404 Not Found
E:某些索引文件下载失败.他们已被忽略,或已过时 代替.
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
然后我收到此消息:
您可能需要运行'apt-get -f install'来更正这些: 以下软件包具有未满足的依赖关系:audacity:依赖于: audacity-data(= 2.1.2-1〜14.04),但不会安装 取决于: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:未满足的依赖关系.尝试使用"apt-get -f install" 没有软件包(或指定解决方案).
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
然后我收到此消息:
将安装以下额外的软件包:nodejs-legacy 以下新软件包将被安装:nodejs-legacy 0升级, 新安装了1个,要删除的是0个,未升级的0个. 41不完全 已安装或卸下.需要获取0 B/14,6 kB档案.在这之后 操作,将使用122 kB的额外磁盘空间.你想要 接着说? [是/否](正在读取数据库... 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 Processing包中 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)
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)
所以看来nodejs出问题了?好的,我运行了这个
So it seems like there is something wrong with nodejs? Ok, I ran this:
sudo apt-get purge nodejs-legacy nodejs
我收到此错误消息:
未安装软件包'nodejs-legacy',因此未被删除您可能 要运行"apt-get -f install"来更正这些问题:以下 软件包具有未满足的依赖项:cordova-cli:依赖项:nodejs但 它不会被安装 取决于:nodejs-legacy,但不会安装 取决于:npm E:未满足的依赖关系.尝试不带任何软件包的"apt-get -f install"(或指定解决方案).
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).
我再次运行了命令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. 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.
我也无法通过ubuntu的软件中心安装audacity.它会说:
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."
..以及修复"选项.我按下修复".之后,我仍然无法安装audacity.它会提到
..along with the option to "repair". I pressed on "repair". After that I still couldn't install audacity. It would mention that
要安装audacity,必须删除以下项目:Cordova-cli
To install audacity, these items must be removed: Cordova-cli
好吧,我卸载了cordova-cli并尝试再次安装audacity(但是我确实需要cordova.我认为必须有另一种方式同时使用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...). Still not possible. It seems like I now can't install any new software or update my system. Help!
推荐答案
这是解决方案:
- 右键单击此:,然后单击运行程序包管理器.
- 选择过滤器损坏"
- 选择要删除的包(在我的情况下是cordova cli)
- 点击应用"
-
sudo apt-get update && sudo apt-get install -f && sudo apt-get update
- Right click on this: then click on run the package manager.
- Choose Filter "broken"
- Select package to be removed (in my case it was cordova cli)
- Click on "Apply"
sudo apt-get update && sudo apt-get install -f && sudo apt-get update
这篇关于由于Cordova和Node.js无法安装Audacity?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!