当前位置: 技术问答>linux和unix
ubuntu下如何安装gtk
来源: 互联网 发布时间:2016-11-11
本文导语: 想在ubuntu下安装gtk,从网上搜了好多,可是都无法安装,按照网上的方法 首先sudo apt-get install build-essential 此时提示: Reading package lists... Done Building dependency tree Reading state information... Done Some packages...
想在ubuntu下安装gtk,从网上搜了好多,可是都无法安装,按照网上的方法
首先sudo apt-get install build-essential
此时提示:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
build-essential : Depends: g++ (>= 4:4.3.1) but it is not going to be installed
E: Broken packages
然后我继续下一步,sudo apt-get install gnome-core-devel
显示如下:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
gnome-core-devel : Depends: libgconf2-dev (>= 2.28) but it is not going to be installed
Depends: liborbit2-dev (>= 1:2.14.17) but it is not going to be installed
Depends: libatspi-dev (>= 1.28) but it is not going to be installed
这究竟是怎么回事,求大侠帮忙。。。。。
首先sudo apt-get install build-essential
此时提示:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
build-essential : Depends: g++ (>= 4:4.3.1) but it is not going to be installed
E: Broken packages
然后我继续下一步,sudo apt-get install gnome-core-devel
显示如下:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
gnome-core-devel : Depends: libgconf2-dev (>= 2.28) but it is not going to be installed
Depends: liborbit2-dev (>= 1:2.14.17) but it is not going to be installed
Depends: libatspi-dev (>= 1.28) but it is not going to be installed
这究竟是怎么回事,求大侠帮忙。。。。。
|
看一下你的 /etc/apt/source.list 里面的是不是可用的源
可用的话,用 sudo apt-get update 命令更新源
此时安装相应的软件应该就可以了
至于source.list文件的源列表可以使用“cn99”的源
出现版本冲突,可以 sudo apt-get remove *** 把程序卸了,重装
如果是同一个源内的程序,一般版本冲突的可能性不大
不同的源可能会存在有些源列表更新不及时
可用的话,用 sudo apt-get update 命令更新源
此时安装相应的软件应该就可以了
至于source.list文件的源列表可以使用“cn99”的源
出现版本冲突,可以 sudo apt-get remove *** 把程序卸了,重装
如果是同一个源内的程序,一般版本冲突的可能性不大
不同的源可能会存在有些源列表更新不及时
|
更新一下你的源
sudo apt-get update
sudo apt-get update
|
用srt,骨头源试试
|
我以前也遇到这样的问题。。也是更新源之后解决了。。