本文介绍了由于Cordova和Node.js无法安装Audacity?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

起初,我只是想在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:无法获取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

然后我收到此消息:

遵循我发送的消息中的建议:

Following the suggestion in the message I ran:

sudo apt-get -f install

然后我收到此消息:

所以看来nodejs出问题了?好的,我运行了这个

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

sudo apt-get purge nodejs-legacy nodejs

我收到此错误消息:

我再次运行了命令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:

..以及修复"选项.我按下修复".之后,我仍然无法安装audacity.它会提到

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

好吧,我卸载了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!

推荐答案

这是解决方案:

  1. 右键单击此:,然后单击运行程序包管理器.
  2. 选择过滤器损坏"
  3. 选择要删除的包(在我的情况下是cordova cli)
  4. 点击应用"
  5. sudo apt-get update && sudo apt-get install -f && sudo apt-get update
  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

这篇关于由于Cordova和Node.js无法安装Audacity?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-14 01:05