我是Linux新手我试图用
安装Mavensudo apt-get install maven
我遇到了这个错误
Do you want to continue? [Y/n] Y
Get:1 http://ubuntu.excellmedia.net/archive/ utopic-updates/main openjdk-7-jre-headless amd64 7u75-2.5.4-1~utopic1 [39.7 MB]
Fetched 1,031 B in 0s (7,897 B/s)
E: Failed to fetch http://ubuntu.excellmedia.net/archive/pool/main/o/openjdk-7/openjdk-7-jre-headless_7u75-2.5.4-1~utopic1_amd64.deb Size mismatch
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
在谷歌上搜索我发现我必须这样做
sudo apt-get clean
sudo apt-get autoclean
sudo apt-get autoremove
并遵循
现在做完上面的干净后,我尝试再次使用
进行安装sudo apt-get install maven
但现在我收到以下不同的错误: - (
The following packages have unmet dependencies:
maven : Depends: libaether-java but it is not going to be installed
Depends: libplexus-containers1.5-java but it is not going to be installed
Depends: libsisu-ioc-java but it is not going to be installed
Depends: libwagon2-java (>= 2.2-2) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
ubuntu@ubuntu:~$
我累了
sudo apt-get update
但它正在使用我正在使用的工作" Ubuntu 14.10"。 Plz帮助
答案 0 :(得分:1)
试试这个:
sudo apt-get -f install
这将导致apt扫描并修复缺少的依赖项,并从为系统配置的存储库中修复它们。在此之后再尝试安装maven。