簡體   English   中英

Monodevelop-嘗試在Linux Precise 64(Ubuntu 12.04 LTS)上安裝

[英]Monodevelop - Try to install on linux Precise 64 (Ubuntu 12.04 LTS)

我正在嘗試從http://www.mono-project.com/docs/getting-started/install/linux/#debian-ubuntu-and-derivatives安裝Monodevelop。

我正在通過Vagrant和Ubuntu Precise 64 Guest OS使用虛擬Box VM

我已經完成了以下步驟:

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb http://download.mono-project.com/repo/debian wheezy main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list
sudo apt-get update

echo "deb http://download.mono-project.com/repo/debian wheezy-libtiff-compat main" | sudo tee -a /etc/apt/sources.list.d/mono-xamarin.list

至此,一切似乎都還可以。 但是當我想通過鍵入以下內容安裝第一個軟件包“ mono-devel”時

sudo apt-get install mono-devel

我有以下錯誤信息

vagrant@precise64:~$ sudo apt-get install mono-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:
 mono-devel : Depends: libgdiplus (>= 2.6.7) but it is not going to be installed
              Depends: libmono-system-design4.0-cil (>= 1.0) but it is not going to be installed
              Depends: libmono-system-drawing4.0-cil (>= 3.0.6) but it is not going to be installed
              Depends: libmono-system-messaging4.0-cil (>= 2.10.1) but it is not going to be installed
              Depends: libmono-system-runtime4.0-cil (>= 2.10.1) but it is not going to be installed
              Depends: libmono-system-servicemodel-activation4.0-cil (>= 1.0) but it is not going to be installed
              Depends: libmono-system-servicemodel-web4.0-cil (>= 3.2.1) but it is not going to be installed
              Depends: libmono-system-servicemodel4.0a-cil (>= 3.2.3) but it is not going to be installed
              Depends: libmono-system-serviceprocess4.0-cil (>= 3.0.6) but it is not going to be installed
              Depends: libmono-system-web-extensions4.0-cil (>= 2.10.3) but it is not going to be installed
              Depends: libmono-system-web-services4.0-cil (>= 1.0) but it is not going to be installed
              Depends: libmono-system-web-webpages-razor2.0-cil (>= 1.0) but it is not going to be installed
              Depends: libmono-system-web-webpages2.0-cil (>= 1.0) but it is not going to be installed
              Depends: libmono-system-web4.0-cil (>= 2.10.3) but it is not going to be installed
              Depends: libmono-system-windows-forms4.0-cil (>= 1.0) but it is not going to be installed
              Depends: libmono-cil-dev (= 4.4.1.0-0xamarin1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
vagrant@precise64:~$ lsb_release
No LSB modules are available.
vagrant@precise64:~$ cat /etc/issue
Ubuntu 12.04.5 LTS \n \l

我也嘗試過進行“ sudo apt-get升級”,但沒有成功。

我以為apt也可以下載並安裝所有軟件包依賴項。 為什么錯誤消息中提到的庫文件無法加載?

如何解決問題? 某處有錯誤嗎?

正如SushiHangover在以下答案中建議我的那樣,我也嘗試安裝libgdiplus,但同時也出現錯誤消息:

vagrant@precise64:~$ sudo apt-get install libgdiplus
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:
 libgdiplus : Depends: libfontconfig1 (>= 2.9.0) but 2.8.0-3ubuntu9.1 is to be installed
              Depends: libtiff5 (> 4.0.0-1~) but it is not installable
E: Unable to correct problems, you have held broken packages.

手動安裝libtiff5軟件包后:

vagrant@precise64:/vagrant$ sudo apt-get install libgdiplus
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 libgdiplus : Depends: libcairo2 (>= 1.4) but it is not going to be installed
              Depends: libexif12 but it is not going to be installed
              Depends: libfontconfig1 (>= 2.9.0) but it is not going to be installed
              Depends: libgif4 (>= 4.1.4) but it is not going to be installed
              Depends: libjpeg8 (>= 8c) but it is not going to be installed
              Depends: libxrender1 but it is not going to be installed
 libtiff5 : Depends: libjbig0 (>= 2.0) but it is not installable
            Depends: libjpeg8 (>= 8c) but it is not going to be installed
            Depends: liblzma5 (>= 5.1.1alpha+20120614) but 5.1.1alpha+20110809-3 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

嘗試運行此:

sudo apt-get install libgdiplus

如果導致:

~~~
libgdiplus : Depends: libjpeg62-turbo (>= 1.3.1) but it is not installable
~~~

然后,您需要獲取較舊的libjpeg62軟件包:

wget http://ftp.br.debian.org/debian/pool/main/libj/libjpeg6b/libjpeg62_6b2-2_amd64.deb
sudo dpkg --install --recursive --auto-deconfigure libjpeg62_6b2-2_amd64.deb

現在你可以:

sudo apt-get install mono-devel
sudo apt-get install monodevelop

新的mono版本需要libtiff5軟件包版本> = 4.0,而Ubuntu 12.x沒有此軟件包。 但是此軟件包版本取決於其他新軟件包或具有較新版本的現有軟件包...

有一個可行的解決方案(在amd64平台上):

wget http://mirrors.kernel.org/ubuntu/pool/main/f/fonts-freefont/fonts-freefont-ttf_20120503-4_all.deb
wget http://mirrors.kernel.org/ubuntu/pool/universe/f/fonts-freefont/ttf-freefont_20120503-4_all.deb
wget http://security.ubuntu.com/ubuntu/pool/main/f/fontconfig/fontconfig-config_2.11.0-0ubuntu4.2_all.deb
wget http://security.ubuntu.com/ubuntu/pool/main/f/fontconfig/libfontconfig1_2.11.0-0ubuntu4.2_amd64.deb
wget http://mirrors.kernel.org/ubuntu/pool/main/j/jbigkit/libjbig0_2.1-3.1_amd64.deb
wget http://mirrors.kernel.org/ubuntu/pool/main/x/xz-utils/liblzma5_5.1.1alpha+20120614-2ubuntu2_amd64.deb
wget http://mirrors.kernel.org/ubuntu/pool/main/t/tiff/libtiff5_4.0.6-1_amd64.deb

sudo dpkg --install --recursive --auto-deconfigure fonts-freefont-ttf_20120503-4_all.deb
sudo dpkg --install --recursive --auto-deconfigure ttf-freefont_20120503-4_all.deb
sudo dpkg --install --recursive --auto-deconfigure fontconfig-config_2.11.0-0ubuntu4.2_all.deb
sudo dpkg --install --recursive --auto-deconfigure libfontconfig1_2.11.0-0ubuntu4.2_amd64.deb
sudo dpkg --install --recursive --auto-deconfigure libjbig0_2.1-3.1_amd64.deb
sudo dpkg --install --recursive --auto-deconfigure liblzma5_5.1.1alpha+20120614-2ubuntu2_amd64.deb
sudo dpkg --install --recursive --auto-deconfigure libtiff5_4.0.6-1_amd64.deb

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb http://download.mono-project.com/repo/debian wheezy main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list
sudo apt-get update
sudo apt-get install mono-devel

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM