Difference between revisions of "Apt-get"

From Linuxintro
imported>ThorstenStaerk
imported>ThorstenStaerk
Line 1: Line 1:
 +
apt-get is a [[system management]] [[command]] to [[install]] [[dpkg]] [[software]] [[packages]].
 +
 +
= TroubleShooting =
 
Here is an example for troubleshooting apt-get:
 
Here is an example for troubleshooting apt-get:
 
<pre>
 
<pre>
Line 125: Line 128:
 
Do you want to continue [Y/n]?
 
Do you want to continue [Y/n]?
 
</pre>
 
</pre>
 +
 +
= See also =
 +
* [[dpkg]]

Revision as of 05:19, 31 January 2012

apt-get is a system management command to install dpkg software packages.

TroubleShooting

Here is an example for troubleshooting apt-get:

root@Microknoppix:~# apt-get install cheese
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:
  cheese: Depends: gstreamer0.10-plugins-good but it is not going to be installed
E: Broken packages
root@Microknoppix:~# apt-get install gstreamer0.10-plugins-good
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:
  gstreamer0.10-plugins-good: Depends: libcucul0 (>= 0.99.beta14-1) but it is not going to be installed
E: Broken packages
root@Microknoppix:~# apt-get install libcucul0                 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libopenal1 libavutil49 libosip2-4 libsrtp0 libdiscid0 liblircclient0
  libavformat52 libschroedinger-1.0-0 mplayer-skin-blue libcdparanoia0
  libexosip2-4 libavcodec52 liboil0.3 libdirac-encoder0 libortp8 libspeexdsp1
  libmusicbrainz3-6 libfaad2
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  libatk1.0-0 libavcodec52 libavformat52 libavutil49 libortp8 libsrtp0
Suggested packages:
  srtp-utils
The following packages will be REMOVED:
  adriane adriane-multimedia gnome-mplayer libcaca0 liblinphone3
  libmediastreamer0 libpostproc51 libswscale0 linphone linphone-nox mplayer
The following NEW packages will be installed:
  libcucul0 libsrtp0
The following packages will be upgraded:
  libatk1.0-0 libavcodec52 libavformat52 libavutil49 libortp8
5 upgraded, 2 newly installed, 11 to remove and 622 not upgraded.
Need to get 5263kB of archives.
After this operation, 8520kB disk space will be freed.
Do you want to continue [Y/n]? Y
Get:1 http://ftp.de.debian.org testing/main libatk1.0-0 1.30.0-1 [82.4kB]
Get:2 http://ftp.de.debian.org testing/main libavformat52 4:0.5.2-5 [709kB]
Get:3 http://ftp.de.debian.org testing/main libavcodec52 4:0.5.2-5 [4001kB]
Get:4 http://ftp.de.debian.org testing/main libavutil49 4:0.5.2-5 [90.3kB]     
Get:5 http://ftp.de.debian.org stable/main libcucul0 0.99.beta14-1 [265kB]     
Get:6 http://ftp.de.debian.org testing/main libsrtp0 1.4.4~dfsg-6 [49.5kB]     
Get:7 http://ftp.de.debian.org unstable/main libortp8 3.3.2-3 [65.6kB]         
Fetched 5263kB in 16s (329kB/s)                                                
(Reading database ... 88299 files and directories currently installed.)
Removing adriane ...
Removing adriane-multimedia ...
Removing gnome-mplayer ...
Removing mplayer ...
Removing libcaca0 ...
Removing linphone ...
Removing linphone-nox ...
Removing liblinphone3 ...
Removing libmediastreamer0 ...
Removing libpostproc51 ...
Removing libswscale0 ...
Processing triggers for menu ...
Processing triggers for man-db ...
Processing triggers for hicolor-icon-theme ...
(Reading database ... 88096 files and directories currently installed.)
Preparing to replace libatk1.0-0 1.28.0-1 (using .../libatk1.0-0_1.30.0-1_i386.deb) ...
Unpacking replacement libatk1.0-0 ...
Preparing to replace libavformat52 4:0.5+svn20090706-2+b1 (using .../libavformat52_4%3a0.5.2-5_i386.deb) ...
Unpacking replacement libavformat52 ...
Preparing to replace libavcodec52 4:0.5+svn20090706-2+b1 (using .../libavcodec52_4%3a0.5.2-5_i386.deb) ...
Unpacking replacement libavcodec52 ...
Preparing to replace libavutil49 4:0.5+svn20090706-2+b1 (using .../libavutil49_4%3a0.5.2-5_i386.deb) ...
Unpacking replacement libavutil49 ...
Selecting previously deselected package libcucul0.
Unpacking libcucul0 (from .../libcucul0_0.99.beta14-1_i386.deb) ...
Selecting previously deselected package libsrtp0.
Unpacking libsrtp0 (from .../libsrtp0_1.4.4~dfsg-6_i386.deb) ...
Preparing to replace libortp8 3.2.1-1 (using .../libortp8_3.3.2-3_i386.deb) ...
Unpacking replacement libortp8 ...
Setting up libatk1.0-0 (1.30.0-1) ...
Setting up libavutil49 (4:0.5.2-5) ...
Setting up libavcodec52 (4:0.5.2-5) ...
Setting up libavformat52 (4:0.5.2-5) ...
Setting up libcucul0 (0.99.beta14-1) ...
Setting up libsrtp0 (1.4.4~dfsg-6) ...
Setting up libortp8 (3.3.2-3) ...
root@Microknoppix:~# apt-get install cheese
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libopenal1 libavutil49 libosip2-4 libsrtp0 libdiscid0 liblircclient0
  libavformat52 libschroedinger-1.0-0 mplayer-skin-blue libexosip2-4
  libavcodec52 libdirac-encoder0 libortp8 libspeexdsp1 libmusicbrainz3-6
  libfaad2
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  gstreamer0.10-alsa gstreamer0.10-plugins-base gstreamer0.10-plugins-good
  gstreamer0.10-x libavc1394-0 libcaca0 libcamel1.2-11 libcdio7 libdv4
  libebook1.2-9 libedataserver1.2-9 libiec61883-0 libraw1394-8 libshout3
  libtag1c2a libvisual-0.4-0 libvisual-0.4-plugins libwavpack1
Suggested packages:
  libdv-bin libraw1394-doc
The following NEW packages will be installed:
  cheese gstreamer0.10-alsa gstreamer0.10-plugins-base
  gstreamer0.10-plugins-good gstreamer0.10-x libavc1394-0 libcaca0
  libcamel1.2-11 libcdio7 libdv4 libebook1.2-9 libedataserver1.2-9
  libiec61883-0 libraw1394-8 libshout3 libtag1c2a libvisual-0.4-0
  libvisual-0.4-plugins libwavpack1
0 upgraded, 19 newly installed, 0 to remove and 622 not upgraded.
Need to get 7586kB of archives.
After this operation, 14.0MB of additional disk space will be used.
Do you want to continue [Y/n]?

See also