web-dev-qa-db-fra.com

Comment installer aptitude?

J'ai essayé d'installer aptitude sur une nouvelle installation d'Ubuntu Server 14.04 (sur docker) et je reçois:

Step 2 : RUN apt-get install aptitude
 ---> Running in 257ad5947629
Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
  apt-xapian-index aptitude-common iso-codes libboost-iostreams1.54.0
  libclass-accessor-Perl libcwidget3 libept1.4.12 libio-string-Perl
  libparse-debianchangelog-Perl libpython-stdlib libpython2.7-minimal
  libpython2.7-stdlib libsigc++-2.0-0c2a libsub-name-Perl libtimedate-Perl
  libxapian22 python python-apt python-apt-common python-chardet python-debian
  python-minimal python-six python-xapian python2.7 python2.7-minimal xz-utils
Suggested packages:
  app-install-data python-xdg aptitude-doc-en aptitude-doc tasksel debtags
  isoquery libcwidget-dev libhtml-parser-Perl libhtml-template-Perl
  libxml-simple-Perl xapian-tools python-doc python-tk python-apt-dbg
  python-gtk2 python-vte python-apt-doc xapian-doc python2.7-doc binutils
  binfmt-support
The following NEW packages will be installed:
  apt-xapian-index aptitude aptitude-common iso-codes libboost-iostreams1.54.0
  libclass-accessor-Perl libcwidget3 libept1.4.12 libio-string-Perl
  libparse-debianchangelog-Perl libpython-stdlib libpython2.7-minimal
  libpython2.7-stdlib libsigc++-2.0-0c2a libsub-name-Perl libtimedate-Perl
  libxapian22 python python-apt python-apt-common python-chardet python-debian
  python-minimal python-six python-xapian python2.7 python2.7-minimal xz-utils
0 upgraded, 28 newly installed, 0 to remove and 5 not upgraded.
Need to get 9754 kB of archives.
After this operation, 49.3 MB of additional disk space will be used.
Do you want to continue? [Y/n] Abort.
2014/07/26 19:22:30 The command [/bin/sh -c apt-get install aptitude] returned a non-zero code: 1

J'ai fait:

  • apt-get update
  • apt-get install aptitude.

Ne peut pas faire apt-get upgrade parce qu'une autre erreur est renvoyée.

Tellement nerveux que ça ne marche pas ... Désolé pour ça.

4
Totty.js

La commande semble être exécutée en tant que script sans entrée. Elle reçoit donc EOF à l'invite de confirmation. Cela provoque l'annulation de apt-get. Si vous pouvez modifier le script, utilisez l'option -y:

/bin/sh -c 'apt-get install -y aptitude'
9
muru

j'ai fait:

  • apt-get update
  • apt-get install aptitude

Tu as besoin de faire:

Sudo apt-get update
Sudo apt-get install aptitude

parce que vous apportez des modifications à votre système à l’aide de ces commandes et qu’elles nécessitent des autorisations "su" root. Après avoir exécuté ces commandes, cela fonctionnera parfaitement. "Utilisateur Cinamon 17.1 Mate"

5
linxShayde

Essayez de le télécharger manuellement à partir de packages.ubuntu.com et de l’installer avec dpkg.

0
jnuk