今天真是背。。。安装了一晚上的源都安装不成功,一直提示校验和有问题。
于是问了其他大神,很多人提供了方法,但都没什么用,后来用以下这种方法解决了问题,因为update不成功导致后面java jdk7安装不成功。
我解决方法是这样的,用了阿里云的源如下:
deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse在执行apt-get update之前先做以下这步操作:
apt-get clean
然后
apt-get update
就成功了。
后面紧接着安装jdk:
sudo apt-get install openjdk-7-jdk openjdk-7-jre
也成功了!
成功还是有点小兴奋的,但也有点小生气,为啥这源效率这么低下!!!浪费很多时间解决这个问题。
原文链接:https://www.f2er.com/ubuntu/354786.html