apt-get install根本不起作用
当我使用命令sudo apt-get install git
它返回下面的erorrs并返回下面安装的任何应用程序:
Setting up util-linux (2.25.2-4ubuntu3) ... update-alternatives: error: cannot stat file '/usr/bin/nodejs': Too many levels of symbolic links dpkg: error processing package util-linux (--configure): subprocess installed post-installation script returned error exit status 2 Errors were encountered while processing: util-linux E: Sub-process /usr/bin/dpkg returned an error code (1)
用sudo apt-get update
不工作,并在下面报告erorr
Fetched 7,032 kB in 5min 32s (21.2 kB/s) W: Failed to fetch http://ppa.launchpad.net/paullo612/unityshell-rotated/ubuntu/dists/vivid/main/binary-amd64/Packages 404 Not Found W: Failed to fetch http://ppa.launchpad.net/paullo612/unityshell-rotated/ubuntu/dists/vivid/main/binary-i386/Packages 404 Not Found E: Some index files failed to download. They have been ignored, or old ones used instead.
怎么解决呢?
你有两个不相关的错误。 第一个是属于包nodejs
的文件/usr/bin/nodejs
似乎被破坏了。 卸载和/或重新安装该程序包可能会解决问题。
第二个是您启用了不再存在的存储库。 您需要从存储库列表中删除该存储库,无论是通过您正在使用的GUI工具还是从sources.list
删除它。