Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

When I run this command, its not installing the packages, as indicated on the last line below.

apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  apache2-mpm-prefork libapache2-mod-php5
Suggested packages:
  php-pear
The following packages will be REMOVED:
  apache2-mpm-worker
The following NEW packages will be installed:
  apache2-mpm-prefork libapache2-mod-php5
0 upgraded, 2 newly installed, 1 to remove and 4 not upgraded.
1 not fully installed or removed.
Need to get 2,836kB/2,839kB of archives. 
After this operation, 7,746kB of additional disk space will be used.
Do you want to continue [Y/n]? Y 
Get:1 http://in.archive.ubuntu.com/ubuntu/ lucid-updates/main libapache2-mod-php5 5.3.2-1ubuntu4.10 [2,836kB]
Fetched 2,836kB in 3s (785kB/s)
Download complete and in download only mode
share|improve this question
    
What are you trying to install? –  Bart De Vos Nov 22 '11 at 14:27
    
I am trying to install libapache2-mod-php5 –  Caterpillar Nov 23 '11 at 4:40
    
Its downloading the packages, but not getting installed. the packages are kept in /var/cache/apt/archives/ but not getting installed, when give apt-get install <packages name> as you see in the question its showing Do you want to continue [Y/n]? Y Download complete and in download only mode –  Caterpillar Nov 23 '11 at 5:36
add comment

1 Answer

sounds like at one time you downloaded something in download only mode like

apt-get install packageName –download-only

It failed so your apt-get -f install was fixing it.. So try to go about your usual apt usage and things should be ok

share|improve this answer
    
Its downloading the packages, but not getting installed. the packages are kept in /var/cache/apt/archives/ but not getting installed, when give apt-get install <packages name> as you see in the question its showing Do you want to continue [Y/n]? Y Download complete and in download only mode –  Caterpillar Nov 23 '11 at 5:34
    
in your example you are doing an apt-get -f install –  Mike Nov 23 '11 at 5:58
    
Yes! After doing that the package is not getting installed, its getting stored in /var/cache/apt/archives/ but its not installing. –  Caterpillar Nov 23 '11 at 12:38
    
try going into that dir and dpkg -i packageName.deb –  Mike Nov 23 '11 at 13:40
    
Showing this below error. dpkg -i libgd2-xpm_2.0.36~rc1~dfsg-3.1ubuntu1_i386.deb dpkg: regarding libgd2-xpm_2.0.36~rc1~dfsg-3.1ubuntu1_i386.deb containing libgd2-xpm: libgd2-xpm conflicts with libgd2 libgd2-noxpm provides libgd2 and is present and installed. dpkg: error processing libgd2-xpm_2.0.36~rc1~dfsg-3.1ubuntu1_i386.deb (--install): conflicting packages - not installing libgd2-xpm Errors were encountered while processing: libgd2-xpm_2.0.36~rc1~dfsg-3.1ubuntu1_i386.deb –  Caterpillar Nov 24 '11 at 5:22
show 1 more comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.