按照http://wiki.qt.io/Install_Qt_5_on_Ubuntu中说的方法安装QT5.4.1,结果由于是Ubuntu的新手,不知道有trusty的问题,结果在网上找到的更新源不是trusty的,配置/etc/apt/sources.list就配置成非trusty的了,在更新opengl库的时候总是提示失败,依赖版本有问题。后来在网上搜到http://forum.ubuntu.org.cn/viewtopic.php?t=468366才知道有trusy的事情,所有又重新更新了trusty的源,update之后再安装opengl就没问题了。这里分享一下trusty的源(尽管也是从网上抄来的)。
##阿里云服务器(杭州电信/网通双网)
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-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-backports 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-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
##网易163服务器(广州电信/网通双网)
deb http://mirrors.163.com/ubuntu/ trusty main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ trusty-updates main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ trusty main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ trusty-security main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ trusty-updates main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ trusty-backports main restricted universe multiverse
##搜狐服务器(山东网通)
deb http://mirrors.sohu.com/ubuntu/ trusty main restricted universe multiverse
deb http://mirrors.sohu.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://mirrors.sohu.com/ubuntu/ trusty-updates main restricted universe multiverse
deb http://mirrors.sohu.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb http://mirrors.sohu.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://mirrors.sohu.com/ubuntu/ trusty main restricted universe multiverse
deb-src http://mirrors.sohu.com/ubuntu/ trusty-security main restricted universe multiverse
deb-src http://mirrors.sohu.com/ubuntu/ trusty-updates main restricted universe multiverse
deb-src http://mirrors.sohu.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb-src http://mirrors.sohu.com/ubuntu/ trusty-backports main restricted universe multiverse
#-------------------ubuntu14.04 trusty(taiwan)--------------------------#
deb http://tw.archive.ubuntu.com/ubuntu/ trusty multiverse universe restricted main
deb http://tw.archive.ubuntu.com/ubuntu/ trusty-security multiverse universe restricted main
deb http://tw.archive.ubuntu.com/ubuntu/ trusty-updates multiverse universe restricted main
deb http://tw.archive.ubuntu.com/ubuntu/ trusty-proposed multiverse universe restricted main
deb http://tw.archive.ubuntu.com/ubuntu/ trusty-backports multiverse universe restricted main
#-------------------ubuntu14.04 trusty(上海交通大学)--------------------------#
deb http://ftp.sjtu.edu.cn/ubuntu/ trusty universe restricted multiverse main
deb http://ftp.sjtu.edu.cn/ubuntu/ trusty-security universe restricted multiverse main
deb http://ftp.sjtu.edu.cn/ubuntu/ trusty-updates universe restricted multiverse main
deb http://ftp.sjtu.edu.cn/ubuntu/ trusty-proposed universe restricted multiverse main
deb http://ftp.sjtu.edu.cn/ubuntu/ trusty-backports universe restricted multiverse main
#-------------------ubuntu14.04 trusty(北京交通大学)--------------------------#
deb http://mirror.bjtu.edu.cn/ubuntu/ trusty universe restricted multiverse main
deb http://mirror.bjtu.edu.cn/ubuntu/ trusty-security universe restricted multiverse main
deb http://mirror.bjtu.edu.cn/ubuntu/ trusty-updates universe restricted multiverse main
deb http://mirror.bjtu.edu.cn/ubuntu/ trusty-proposed universe restricted multiverse main
deb http://mirror.bjtu.edu.cn/ubuntu/ trusty-backports universe restricted multiverse main