[Debian]Installer un paquet "manuellement" ?

Installer un paquet "manuellement" ? [Debian] - Linux et OS Alternatifs

Marsh Posté le 20-02-2006 à 15:41:03    

J'ai un souci avec le paquet x11-common qui semble +/- "cassé" dans apt.
Le bug report ici
On m'a conseillé de mettre le paquet "on hold" et de l'installer manuellement... mais je sais pas ce que ça implique :pt1cable:  
Au dela des commandes apt de base, je pars un peu en panique, craignant de casser mon précieux arbre apt :D
 
J'ai essayé "dpkg -i" mais ça passe pas. Du coup j'ai plus de X, et via apt je peux plus installer si retirer aucun paquet  :sweat:  
 
FYI, le message apt:

> apt-get upgrade
Reading package lists... Done
Building dependency tree... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
  kdelibs-bin: Depends: kdelibs4c2a (>= 4:3.5.1-1) but it is not installed
               Depends: libcupsys2 (>= 1.1.23-1) but it is not installed
  krusader: Depends: kdelibs4c2a (>= 4:3.5.0-2) but it is not installed
  libgnomecups1.0-1: Depends: libcupsys2 (>= 1.1.23-1) but it is not installed
  libgnomeprint2.2-0: Depends: libcupsys2 (>= 1.1.23-1) but it is not installed
  libx11-6: Depends: x11-common (> 4.3.0) but it is not installed
  superkaramba: Depends: kdelibs4c2a (>= 4:3.5.1-1) but it is not installed
                Depends: xmms (>= 1.2.10+cvs20050809) but 1.2.10+cvs20050209-2 is installed
  xfree86-common: Depends: x11-common but it is not installed
E: Unmet dependencies. Try using -f.
>

Reply

Marsh Posté le 20-02-2006 à 15:41:03   

Reply

Marsh Posté le 20-02-2006 à 19:00:09    

apt-get -f install

Reply

Marsh Posté le 20-02-2006 à 19:08:08    

Ensuite  

Citation :

dpkg-reconfigure xserver-xorg


 
(si jamais ton affichage foire)


Message édité par Fork Bomb le 20-02-2006 à 19:09:49
Reply

Marsh Posté le 21-02-2006 à 02:06:36    

dam1330 a écrit :

apt-get -f install


Oui... mais justement c'est ça qui marche pas  :D
C'est tout cassé len'd'dans :

apt-get -f install
Reading package lists... Done
Building dependency tree... Done
Correcting dependencies... Done
The following extra packages will be installed:
  kdelibs-bin kdelibs-data kdelibs4c2a libcupsys2 libgnutls12 liblua50 liblualib50 libopenexr2c2a superkaramba x11-common
The following packages will be REMOVED:
  libcupsys2-gnutls10 libopenexr2
The following NEW packages will be installed:
  kdelibs4c2a libcupsys2 libgnutls12 liblua50 liblualib50 libopenexr2c2a x11-common
The following packages will be upgraded:
  kdelibs-bin kdelibs-data superkaramba
3 upgraded, 7 newly installed, 2 to remove and 191 not upgraded.
25 not fully installed or removed.
Need to get 0B/20.6MB of archives.
After unpacking 33.5MB of additional disk space will be used.
Do you want to continue [Y/n]?
Preconfiguring packages ...
(Reading database ... 58255 files and directories currently installed.)
Unpacking x11-common (from .../x11-common_6.9.0.dfsg.1-4_all.deb) ...
dpkg: error processing /var/cache/apt/archives/x11-common_6.9.0.dfsg.1-4_all.deb (--unpack):
 trying to overwrite `/usr/include/X11', which is also in package libxft-dev
Errors were encountered while processing:
 /var/cache/apt/archives/x11-common_6.9.0.dfsg.1-4_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
>

J'aurais bien voulu... :(

Reply

Marsh Posté le 21-02-2006 à 15:08:32    

non..? :whistle:

Reply

Marsh Posté le 21-02-2006 à 22:45:15    

SVP... :(. Je pose une question débile ou compliquée??  :ange:

Reply

Marsh Posté le 22-02-2006 à 17:23:10    

Salut,
 
Si tu veux qu'un paquet puisse écraser les fichiers d'un autre paquet il faut passer l'option  
 

Code :
  1. apt-get -o DPkg::Options="--force-overwrite"


et derriere tu rajoute -f install et ca devrait passer.
 
voir man apt.conf
 
cf :
 
http://lists.debian.org/debian-fre [...] 00016.html
 
a+


Message édité par enfoiro le 22-02-2006 à 17:23:57
Reply

Marsh Posté le 23-02-2006 à 21:15:47    

Merci pour ta réponse :jap: (marrant ton pseudo :whistle:).
Malheureusement ça passe pas :

Code :
  1. > apt-get -o DPkg::Options="--force-overwrite" -f install
  2. Reading package lists... Done
  3. Building dependency tree... Done
  4. Correcting dependencies... Done
  5. The following extra packages will be installed:
  6.   kdelibs-bin kdelibs-data kdelibs4c2a libcupsys2 libgnutls12 liblua50
  7.   liblualib50 libopenexr2c2a superkaramba x11-common
  8. The following packages will be REMOVED:
  9.   libcupsys2-gnutls10 libopenexr2
  10. The following NEW packages will be installed:
  11.   kdelibs4c2a libcupsys2 libgnutls12 liblua50 liblualib50 libopenexr2c2a
  12.   x11-common
  13. The following packages will be upgraded:
  14.   kdelibs-bin kdelibs-data superkaramba
  15. 3 upgraded, 7 newly installed, 2 to remove and 208 not upgraded.
  16. 25 not fully installed or removed.
  17. Need to get 0B/20.6MB of archives.
  18. After unpacking 33.5MB of additional disk space will be used.
  19. Do you want to continue [Y/n]? y
  20. Preconfiguring packages ...
  21. (Reading database ... 58255 files and directories currently installed.)
  22. Unpacking x11-common (from .../x11-common_6.9.0.dfsg.1-4_all.deb) ...
  23. dpkg: error processing /var/cache/apt/archives/x11-common_6.9.0.dfsg.1-4_all.deb (--unpack):
  24. trying to overwrite `/usr/include/X11', which is also in package libxft-dev
  25. Errors were encountered while processing:
  26. /var/cache/apt/archives/x11-common_6.9.0.dfsg.1-4_all.deb
  27. E: Sub-process /usr/bin/dpkg returned an error code (1)
  28. >

En fait mon problème et son "palliatif" est expliqué
Ca dit:

Citation :

FWIW, I think this is a bug in libxft-dev. It should either put the
headers in /usr/X11R6/include/X11/Xft/ (as older versions did) or
Pre-Depend on x11-common (>= 1:1.0), which would make it uninstallable
in sid. Reassigning this bug report to libxft-dev.
 
You should be able to work around this by manually installing x11-common
before libxft-dev, but you'll probably lose the headers.

Oui effectivement, ça fait perdre la tête ce truc! :D
...une idée?

Reply

Marsh Posté le 23-02-2006 à 22:32:08    

:wahoo: ayé ça passe :wahoo:  
J'ai trouvé une page qui résout mon souci : http://arved.priv.at/weblog/archiv [...] never.html
c'était

dpkg --force-overwrite -i /var/cache/apt/archives/x11-common_6.9.0.dfsg.1-4_all.deb


Et X is back ! :D (fiou :sweat:)

Reply

Marsh Posté le 24-02-2006 à 14:18:26    

Chalut,
 
Oui tt a fait essentielle cette commande elle m'avait sauvé un jour passé.
Bien joué.
 
a+

Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed