Strona 1 z 1

Nie można zainstalować Mono Develop

: 21 lutego 2016, 20:58
autor: johnyjj2
Cześć,

nie mogę zainstalować Mono Develop na Debianie.

Pierwszy sposób

Pakiet ściągnięty stąd (https://packages.debian.org/jessie/all/ ... p/download) nie działa z powodu następującego błędu:
Cannot install 'libglade2.0-cil'.
Szczegóły (Lintian output) były takie:
W: monodevelop: debian-news-entry-has-unknown-version 0.18.1-1
E: monodevelop: debian-copyright-file-uses-obsolete-national-encoding at line 23
W: monodevelop: manpage-has-errors-from-man usr/share/man/man1/mdtool.1.gz 104: warning: macro `/'' not defined
E: monodevelop: menu-icon-not-in-xpm-format usr/share/icons/hicolor/scalable/apps/monodevelop.svg
W: monodevelop: script-not-executable usr/lib/monodevelop/AddIns/MonoDevelop.Autotools/templates/autogen.sh.template
W: monodevelop: script-not-executable usr/lib/monodevelop/AddIns/MonoDevelop.Autotools/templates/configure.template
W: monodevelop: script-not-executable usr/lib/monodevelop/AddIns/MonoDevelop.Autotools/templates/exe.wrapper.in.template
W: monodevelop: executable-not-elf-or-script usr/lib/monodevelop/AddIns/MonoDevelop.XmlEditor/schemas/appconfig.xsd
W: monodevelop: executable-not-elf-or-script usr/lib/monodevelop/AddIns/MonoDevelop.XmlEditor/schemas/XMLSchema.xsd
W: monodevelop: executable-not-elf-or-script usr/lib/monodevelop/AddIns/MonoDevelop.XmlEditor/schemas/W3C-License.html
W: monodevelop: executable-not-elf-or-script usr/lib/monodevelop/AddIns/MonoDevelop.XmlEditor/schemas/xslt.xsd
W: monodevelop: executable-not-elf-or-script usr/lib/monodevelop/AddIns/MonoDevelop.XmlEditor/schemas/nant.xsd
W: monodevelop: executable-not-elf-or-script usr/lib/monodevelop/AddIns/MonoDevelop.AspNet/Schemas/readme.txt
W: monodevelop: executable-not-elf-or-script usr/lib/monodevelop/AddIns/MonoDevelop.XmlEditor/schemas/manifest.xsd
W: monodevelop: executable-not-elf-or-script usr/lib/monodevelop/AddIns/MonoDevelop.XmlEditor/schemas/readme.txt
W: monodevelop: executable-not-elf-or-script usr/lib/monodevelop/AddIns/MonoDevelop.AspNet/Schemas/W3C-License.html
Lintian finished with exit status 1

Zaś ręczna instalacja libglade:
root@myusername:~# sudo apt-get install libglade
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libglade
root@myusername:~# sudo apt-get install libglade2.0-cil
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:
libglade2.0-cil : Depends: libgtk2.0-cil (>= 2.12.10-1ubuntu1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
root@myusername:~#


Drugi sposób

Te trzy polecenia (http://www.mono-project.com/docs/gettin ... erivatives) zadziałały, więc repozytorium pakietów powinno być zaktualizowane. Ale później polecenia z sekcji 'Usage" nie działały:
root@myusername:~# 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-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-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.2.2.30-0xamarin2) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Podobnie z drugim z pakietów wspomnianych w 'Usage'.

Jak zainstalować Mono Develop (w celu umożliwienia stworzenia prostej aplikacji na Androida przy pomocy języka C#) na Debianie?

Z góry dzięki!

: 21 lutego 2016, 22:11
autor: lizard
Pokaż zawartość /etc/apt/sources.list i /etc/apt/sources.list.d/*.list. Wygląda mi to na problem z repozytoriami.

: 21 lutego 2016, 22:26
autor: johnyjj2
lizard pisze:Pokaż zawartość /etc/apt/sources.list i /etc/apt/sources.list.d/*.list. Wygląda mi to na problem z repozytoriami.
Może tak być. Przed chwilą wykomentowałem repozytorium Canonical, zrobiłem apt-get update i niestety to nie wystarczyło. Apt-get -f install niczego nie musiał naprawiać.
#

# deb-src cdrom:[Debian GNU/Linux 8.2.0 _Jessie_ - Official Multi-architecture i386/amd64/source DVD #1 20150906-15:30]/ jessie main
# deb cdrom:[Debian GNU/Linux 8.2.0 _Jessie_ - Official Multi-architecture i386/amd64/source DVD #1 20150906-15:30]/ jessie main
#

deb-src cdrom:[Debian GNU/Linux 8.2.0 _Jessie_ - Official Multi-architecture i386/amd64/source DVD #1 20150906-15:30]/ jessie main
deb cdrom:[Debian GNU/Linux 8.2.0 _Jessie_ - Official Multi-architecture i386/amd64/source DVD #1 20150906-15:30]/ jessie main


deb http://ftp.uk.debian.org/debian/ jessie main
deb-src http://ftp.uk.debian.org/debian/ jessie main

deb http://security.debian.org/ jessie/updates main
deb-src http://security.debian.org/ jessie/updates main

# jessie-updates, previously known as 'volatile'
deb http://ftp.uk.debian.org/debian/ jessie-updates main
deb-src http://ftp.uk.debian.org/debian/ jessie-updates main
# deb http://archive.canonical.com/ jessie partner
# deb-src http://archive.canonical.com/ jessie partner
# Debian 8 "Jessie"
deb http://httpredir.debian.org/debian/ jessie main contrib
name@debian:/etc/apt/sources.list.d$ ls
google-talkplugin.list mono-xamarin.list.save
google-talkplugin.list.save webupd8team-haguichi-jessie.list
mono-xamarin.list
Za to zauważyłem, że brakująca zależność to
root@myusername:~# apt-get install libjpeg8
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libjpeg8 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libjpeg8' has no installation candidate
Pobrałem stąd https://sourceforge.net/projects/libjpe ... p_redirect i zauważyłem, że jest tam jakiś install-sh, to go próbuję uruchomić.
[INDENT]root@debian:/home/user/Downloads/jpeg-6b# ./install-sh
-su: ./install-sh: /bin/sh^M: bad interpreter: No such file or directory


[/INDENT]
NIestety nigdy nie robiłem builda ani nie tworzyłem pakietów pod Linuksem. A chyba tego libjpeg8 po prostu nie ma w tym wydaniu Debiana.

: 21 lutego 2016, 23:05
autor: lizard
Dodaj o repozytoriów głównych Debiana komponenety non-free i contrib:

Kod: Zaznacz cały

deb [URL]http://ftp.uk.debian.org/debian/[/URL] jessie main non-free contrib
deb-src [URL]http://ftp.uk.debian.org/debian/[/URL] jessie main non-free contrib

deb [URL]http://security.debian.org/[/URL] jessie/updates main non-free contrib
deb-src [URL]http://security.debian.org/[/URL] jessie/updates main non-free contrib

# jessie-updates, previously known as 'volatile'
deb [URL]http://ftp.uk.debian.org/debian/[/URL] jessie-updates main non-free contrib
deb-src [URL]http://ftp.uk.debian.org/debian/[/URL] jessie-updates main non-free contrib
Potem standardowe: apt-get update && apt-get install monodevelop.
johnyjj2 pisze:

Kod: Zaznacz cały

The following packages have unmet dependencies:
 libglade2.0-cil : Depends: libgtk2.0-cil (>= 2.12.10-1ubuntu1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
To jest dobry przykład na to, aby nie mieszać repozytoriów dystrybucji. :)

: 22 lutego 2016, 16:37
autor: marcin1982
Proszę używać tagów CODE, a nie QUOTE.