Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/three.js/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
无法在linux上安装libgtk2.0-dev_Linux_Linux Mint - Fatal编程技术网

无法在linux上安装libgtk2.0-dev

无法在linux上安装libgtk2.0-dev,linux,linux-mint,Linux,Linux Mint,我正在尝试编译xfce终端,配置不会通过说我缺少gtk2 checking for gtk+-2.0 >= 2.24.0... not found *** The required package gtk+-2.0 was not found on your system. *** Please install gtk+-2.0 (atleast version 2.24.0) or adjust 因此,我正在尝试安装sudo apt get install libgtk2.0-dev

我正在尝试编译xfce终端,配置不会通过说我缺少gtk2

checking for gtk+-2.0 >= 2.24.0... not found
*** The required package gtk+-2.0 was not found on your system.
*** Please install gtk+-2.0 (atleast version 2.24.0) or adjust
因此,我正在尝试安装sudo apt get install libgtk2.0-dev

然后我得到了真正奇怪的输出,包括内部错误:

Reading package lists...
Building dependency tree...
Reading state information...
Reading extended state information...
Initializing package states...
The following NEW packages will be installed:
  gir1.2-gtk-2.0{a} libatk1.0-dev{a} libcairo-script-interpreter2{a} 
  libcairo2-dev{a} libexpat1-dev{a} libfontconfig1-dev{a} 
  libgdk-pixbuf2.0-dev{a} libglib2.0-dev{a} libgtk2.0-dev libice-dev{a} 
  libpango1.0-dev{a} libpcre3-dev{a} libpcrecpp0{a} libpixman-1-dev{a} 
  libsm-dev{a} libxcb-shm0-dev{a} libxcomposite-dev{a} libxcursor-dev{a} 
  libxft-dev{a} libxinerama-dev{a} libxml2-utils{a} 
  x11proto-composite-dev{a} x11proto-xinerama-dev{a} 
The following packages will be upgraded:
  gir1.2-pango-1.0 libpango-1.0-0 libpango-1.0-0:i386 libpangocairo-1.0-0 
  libpangocairo-1.0-0:i386 libpangoft2-1.0-0 libpangoft2-1.0-0:i386 
  libpangoxft-1.0-0 libpangoxft-1.0-0:i386 
9 packages upgraded, 23 newly installed, 0 to remove and 39 not upgraded.
Need to get 7,023 kB of archives. After unpacking 43.7 MB will be used.
The following packages have unmet dependencies:
 libpango1.0-0 : Depends: libpango-1.0-0 (= 1.36.3-1ubuntu1) but 1.36.3-1ubuntu1.1 is to be installed.
                 Depends: libpangocairo-1.0-0 (= 1.36.3-1ubuntu1) but 1.36.3-1ubuntu1.1 is to be installed.
                 Depends: libpangoxft-1.0-0 (= 1.36.3-1ubuntu1) but 1.36.3-1ubuntu1.1 is to be installed.
                 Depends: libpangoft2-1.0-0 (= 1.36.3-1ubuntu1) but 1.36.3-1ubuntu1.1 is to be installed.
 libpango1.0-0:i386 : Depends: libpango-1.0-0:i386 (= 1.36.3-1ubuntu1) but 1.36.3-1ubuntu1.1 is to be installed.
                      Depends: libpangocairo-1.0-0:i386 (= 1.36.3-1ubuntu1) but 1.36.3-1ubuntu1.1 is to be installed.
                      Depends: libpangoxft-1.0-0:i386 (= 1.36.3-1ubuntu1) but 1.36.3-1ubuntu1.1 is to be installed.
                      Depends: libpangoft2-1.0-0:i386 (= 1.36.3-1ubuntu1) but 1.36.3-1ubuntu1.1 is to be installed.
Internal error: found 2 (choice -> promotion) mappings for a single choice.
Internal error: found 2 (choice -> promotion) mappings for a single choice.
The following actions will resolve these dependencies:

      Remove the following packages:
1)      apturl                      
2)      banshee                     
3)      gir1.2-gkbd-3.0             
4)      gkbd-capplet                
5)      gtk2-engines-murrine        
6)      gtk2-engines-murrine:i386   
7)      ia32-libs                   
8)      libappindicator0.1-cil      
9)      libgnomekbd8                
10)     libgtk-sharp-beans-cil      
11)     libgtk2.0-cil               
12)     libmono-addins-gui0.2-cil   
13)     libnotify0.4-cil            
14)     libpango1.0-0               
15)     libpango1.0-0:i386          
16)     libvte9                     
17)     mint-meta-core              
18)     mint-meta-xfce              
19)     mintbackup                  
20)     mintinstall                 
21)     mintwelcome                 
22)     python-sexy                 
23)     python-vte                  
24)     tomboy                      
25)     xfce4-dict                  
26)     xfce4-terminal              
27)     xfce4-weather-plugin        



Accept this solution? [Y/n/q/?] 

我应该继续还是应该怎么做才能安装GTK2?

您不应该继续使用此解决方案,它将删除mint meta core,它是mint和mint meta xfce的基本包,而mint meta xfce本身就是xfce会话


为什么不从apt install xfce terminal安装xfce terminal?

因为我想阅读源代码并进行编译。顺便说一句,我解决了这个问题,或者说几天后它就消失了,我能够在没有这些警告的情况下安装这个软件包。很奇怪。