Package Installation Problem

Asked by ramesh raman

Hi Team,

I am facing the problem when i install any package in ubuntu 10.04 LTS. Please find the below error messaage. Please Kindly help on this

root@351973-app4:~# apt-get install firefox
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
  firefox: Depends: libasound2 (> 1.0.22)
           Depends: libatk1.0-0 (>= 1.29.3) but it is not going to be installed
           Depends: libdbus-glib-1-2 (>= 0.78) but it is not going to be installed
           Depends: libgtk2.0-0 (>= 2.18.0) but it is not going to be installed
           Depends: libstartup-notification0 (>= 0.10) but it is not going to be installed
           Depends: libxt6 but it is not going to be installed
           Recommends: xul-ext-ubufox
           Recommends: libcanberra0 but it is not going to be installed
  linux-headers-2.6.32-44-generic-pae: Depends: linux-headers-2.6.32-44 but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

root@351973-app4:~# apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  libts-0.0-0 libxcb-render-util0 linux-headers-2.6.32-40 linux-headers-2.6.32-41 linux-headers-2.6.32-42
  linux-headers-2.6.32-37 linux-headers-2.6.32-43 linux-headers-2.6.32-38 linux-headers-2.6.32-39 ttf-dejavu-extra
  libpixman-1-0 clamav-freshclam linux-headers-2.6.32-42-generic-pae linux-headers-2.6.32-37-generic-pae librrd4 libcairo2
  clamav-base libclamav6 libpango1.0-common libxcb-render0 libdatrie1 fontconfig libxfont1 libdirectfb-1.2-0 libpango1.0-0
  libxft2 linux-headers-2.6.32-43-generic-pae linux-headers-2.6.32-38-generic-pae libthai0 libxrender1
  linux-headers-2.6.32-40-generic-pae libfontenc1 ttf-dejavu xfonts-utils libthai-data tsconf x11-common libsysfs2
  libtommath0 linux-headers-2.6.32-39-generic-pae xfonts-encodings defoma x-ttcidfont-conf
  linux-headers-2.6.32-41-generic-pae
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  linux-headers-2.6.32-44
The following NEW packages will be installed:
  linux-headers-2.6.32-44
0 upgraded, 1 newly installed, 0 to remove and 125 not upgraded.
2 not fully installed or removed.
Need to get 0B/10.2MB of archives.
After this operation, 75.9MB of additional disk space will be used.
Do you want to continue [Y/n]? Y
(Reading database ... 199964 files and directories currently installed.)
Unpacking linux-headers-2.6.32-44 (from .../linux-headers-2.6.32-44_2.6.32-44.98_all.deb) ...
dpkg: error processing /var/cache/apt/archives/linux-headers-2.6.32-44_2.6.32-44.98_all.deb (--unpack):
 unable to create `/usr/src/linux-headers-2.6.32-44/arch/sparc/include/asm/bitext.h.dpkg-new' (while processing `./usr/src/linux-headers-2.6.32-44/arch/sparc/include/asm/bitext.h'): No space left on device
No apport report written because the error message indicates a disk full error
                                                                              dpkg-deb: subprocess paste killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/linux-headers-2.6.32-44_2.6.32-44.98_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
You have new mail in /var/mail/root
root@351973-app4:~#

Regards,
Ramesh R

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu ntp Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
ramesh raman (rbmramesh) said :
#3

Hi Team,

Please find the disk space details .

root@351973-app4:~# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg1-lv_root
                      7.4G 3.7G 3.4G 52% /
none 2.0G 204K 2.0G 1% /dev
tmpfs 2.0G 0 2.0G 0% /dev/shm
none 2.0G 140K 2.0G 1% /var/run
none 2.0G 0 2.0G 0% /var/lock
none 2.0G 0 2.0G 0% /lib/init/rw
/dev/mapper/vg1-lv_tmp
                      1.9G 85M 1.7G 5% /tmp
/dev/sda1 184M 126M 50M 72% /boot
/dev/sda4 35G 27G 6.2G 82% /home
/dev/mapper/vg1-lv_usr
                      2.8G 1.7G 1.0G 62% /usr
/dev/mapper/vg1-lv_var
                      9.2G 3.2G 5.6G 36% /var
/dev/sdb1 114G 84G 25G 78% /localdatastore
You have new mail in /var/mail/root

Regards,

Ramesh

On Tue, Aug 6, 2013 at 8:36 PM, ramesh raman <
<email address hidden>> wrote:

> New question #233621 on ntp in Ubuntu:
> https://answers.launchpad.net/ubuntu/+source/ntp/+question/233621
>
> Hi Team,
>
> I am facing the problem when i install any package in ubuntu 10.04 LTS.
> Please find the below error messaage. Please Kindly help on this
>
> root@351973-app4:~# apt-get install firefox
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> You might want to run `apt-get -f install' to correct these:
> The following packages have unmet dependencies:
> firefox: Depends: libasound2 (> 1.0.22)
> Depends: libatk1.0-0 (>= 1.29.3) but it is not going to be
> installed
> Depends: libdbus-glib-1-2 (>= 0.78) but it is not going to be
> installed
> Depends: libgtk2.0-0 (>= 2.18.0) but it is not going to be
> installed
> Depends: libstartup-notification0 (>= 0.10) but it is not going
> to be installed
> Depends: libxt6 but it is not going to be installed
> Recommends: xul-ext-ubufox
> Recommends: libcanberra0 but it is not going to be installed
> linux-headers-2.6.32-44-generic-pae: Depends: linux-headers-2.6.32-44
> but it is not going to be installed
> E: Unmet dependencies. Try 'apt-get -f install' with no packages (or
> specify a solution).
>
>
>
> root@351973-app4:~# apt-get -f install
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> Correcting dependencies... Done
> The following packages were automatically installed and are no longer
> required:
> libts-0.0-0 libxcb-render-util0 linux-headers-2.6.32-40
> linux-headers-2.6.32-41 linux-headers-2.6.32-42
> linux-headers-2.6.32-37 linux-headers-2.6.32-43 linux-headers-2.6.32-38
> linux-headers-2.6.32-39 ttf-dejavu-extra
> libpixman-1-0 clamav-freshclam linux-headers-2.6.32-42-generic-pae
> linux-headers-2.6.32-37-generic-pae librrd4 libcairo2
> clamav-base libclamav6 libpango1.0-common libxcb-render0 libdatrie1
> fontconfig libxfont1 libdirectfb-1.2-0 libpango1.0-0
> libxft2 linux-headers-2.6.32-43-generic-pae
> linux-headers-2.6.32-38-generic-pae libthai0 libxrender1
> linux-headers-2.6.32-40-generic-pae libfontenc1 ttf-dejavu xfonts-utils
> libthai-data tsconf x11-common libsysfs2
> libtommath0 linux-headers-2.6.32-39-generic-pae xfonts-encodings defoma
> x-ttcidfont-conf
> linux-headers-2.6.32-41-generic-pae
> Use 'apt-get autoremove' to remove them.
> The following extra packages will be installed:
> linux-headers-2.6.32-44
> The following NEW packages will be installed:
> linux-headers-2.6.32-44
> 0 upgraded, 1 newly installed, 0 to remove and 125 not upgraded.
> 2 not fully installed or removed.
> Need to get 0B/10.2MB of archives.
> After this operation, 75.9MB of additional disk space will be used.
> Do you want to continue [Y/n]? Y
> (Reading database ... 199964 files and directories currently installed.)
> Unpacking linux-headers-2.6.32-44 (from
> .../linux-headers-2.6.32-44_2.6.32-44.98_all.deb) ...
> dpkg: error processing
> /var/cache/apt/archives/linux-headers-2.6.32-44_2.6.32-44.98_all.deb
> (--unpack):
> unable to create
> `/usr/src/linux-headers-2.6.32-44/arch/sparc/include/asm/bitext.h.dpkg-new'
> (while processing
> `./usr/src/linux-headers-2.6.32-44/arch/sparc/include/asm/bitext.h'): No
> space left on device
> No apport report written because the error message indicates a disk full
> error
>
> dpkg-deb: subprocess paste killed by signal (Broken pipe)
> Errors were encountered while processing:
> /var/cache/apt/archives/linux-headers-2.6.32-44_2.6.32-44.98_all.deb
> E: Sub-process /usr/bin/dpkg returned an error code (1)
> You have new mail in /var/mail/root
> root@351973-app4:~#
>
>
>
> Regards,
> Ramesh R
>
>
> --
> You received this question notification because you asked the question.
>

--
Regards

Ramesh R

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#4

what is the output of:

uname -a; lsb_release -a

Thanks

Revision history for this message
ramesh raman (rbmramesh) said :
#5

Hi Team,
This is the production server. Please find the details. Please help on this

Linux 351973-app4 2.6.32-39-generic-pae #86-Ubuntu SMP Mon Feb 13 23:05:11
UTC 2
                012 i686 GNU/Linux
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 10.04.3 LTS
Release: 10.04
Codename: lucid
root@351973-app4:~#

Regards,
Ramesh

On Tue, Aug 6, 2013 at 9:36 PM, actionparsnip <
<email address hidden>> wrote:

> Your question #233621 on ntp in Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/ntp/+question/233621
>
> Status: Open => Needs information
>
> actionparsnip requested more information:
> what is the output of:
>
> uname -a; lsb_release -a
>
> Thanks
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https://answers.launchpad.net/ubuntu/+source/ntp/+question/233621
>
> You received this question notification because you asked the question.
>

--
Regards

Ramesh R

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#6

Http://packages.ubuntu.com/lucid/linux-image-server

Your kernel is behind the server kernel because you are using the desktop OS which is EOL. The server is not EOL and so is still developed for.

What is the output of :

apt-cache policy gedit

Thanks.

Revision history for this message
Manfred Hampl (m-hampl) said :
#7

Please provide the output of the commands

df -i
dpkg -i | grep linux-headers

Revision history for this message
Manfred Hampl (m-hampl) said :
#8

The command

sudo dpkg -P linux-headers-2.6.32-40 linux-headers-2.6.32-41 linux-headers-2.6.32-42 linux-headers-2.6.32-37 linux-headers-2.6.32-43 linux-headers-2.6.32-38 linux-headers-2.6.32-39

might help solving the "No space left on device" problem.

Revision history for this message
ramesh raman (rbmramesh) said :
#9

Hi Team,

Please find the details you requested from server. I am using server
edition only in the server.

root@351973-app4:~# apt-cache policy gedit
gedit:
  Installed: (none)
  Candidate: 2.30.3-0ubuntu0.1
  Version table:
     2.30.3-0ubuntu0.1 0
        500 http://mirror.rackspace.com/ubuntu/ lucid-updates/main Packages
     2.30.0git20100413-0ubuntu1 0
        500 http://mirror.rackspace.com/ubuntu/ lucid/main Packages

root@351973-app4:~# df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/mapper/vg1-lv_root
                      488640 87055 401585 18% /
none 206486 721 205765 1% /dev
tmpfs 208794 1 208793 1% /dev/shm
none 208794 89 208705 1% /var/run
none 208794 5 208789 1% /var/lock
none 208794 3 208791 1% /lib/init/rw
/dev/mapper/vg1-lv_tmp
                      121920 78 121842 1% /tmp
/dev/sda1 48768 248 48520 1% /boot
/dev/sda4 2293760 593028 1700732 26% /home
/dev/mapper/vg1-lv_usr
                      183264 181569 1695 100% /usr
/dev/mapper/vg1-lv_var
                      610800 24602 586198 5% /var
/dev/sdb1 7536640 474446 7062194 7% /localdatastore
root@351973-app4:~#

Hi Manfred,

I am not issue this below command still now. Shall i issue this command Why
i am asking means it is in Production.

sudo dpkg -P linux-headers-2.6.32-40 linux-headers-2.6.32-41 linux-
headers-2.6.32-42 linux-headers-2.6.32-37 linux-headers-2.6.32-43 linux-
headers-2.6.32-38 linux-headers-2.6.32-39

Kindly help on this.

Regards,
Ramesh

On Wed, Aug 7, 2013 at 1:36 PM, Manfred Hampl <
<email address hidden>> wrote:

> Your question #233621 on ntp in Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/ntp/+question/233621
>
> Manfred Hampl proposed the following answer:
> The command
>
> sudo dpkg -P linux-headers-2.6.32-40 linux-headers-2.6.32-41 linux-
> headers-2.6.32-42 linux-headers-2.6.32-37 linux-headers-2.6.32-43 linux-
> headers-2.6.32-38 linux-headers-2.6.32-39
>
> might help solving the "No space left on device" problem.
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
>
> https://answers.launchpad.net/ubuntu/+source/ntp/+question/233621/+confirm?answer_id=7
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/ubuntu/+source/ntp/+question/233621
>
> You received this question notification because you asked the question.
>

--
Regards

Ramesh R

Revision history for this message
Manfred Hampl (m-hampl) said :
#10

The output of "df -i" shows "183264 181569 1695 100% /usr". You have used (almost) all inodes on the /usr file system, leading to the error message "No space left on device".

To solve that you should delete files on that file system, and the best candidates are packages that have been installed, but that are not needed any more. Kernel header files for old and obsolete kernel versions are a good candidate for deletion. Even the package management suggest that these outdated kernel header packages are deinstalled.

I recommend running this command, it should have no negative effect, even on a running production server:

sudo dpkg -P linux-headers-2.6.32-37 \
linux-headers-2.6.32-38 \
linux-headers-2.6.32-40 \
linux-headers-2.6.32-41 \
linux-headers-2.6.32-42

What puzzles me a bit is that you are still running the 2.6.32-39-generic-pae kernel version (according to uname -a), although higher kernel versions are available. Either something went wrong at the attempt to install the newer kernels (maybe caused by no space left), or your system has never been rebooted after the installation of the newer kernels to load the newer kernel.

Please provide the output of

uptime
dpkg -l | grep linux-image

Revision history for this message
ramesh raman (rbmramesh) said :
#11

Hi Manfred,

Please Find the details. Kindly suggest me what can i do next

root@351973-app4:~# dpkg -l | grep linux-image
ii linux-image-2.6.32-37-generic-pae 2.6.32-37.81
Linux kernel image for version 2.6.32 on x86
ii linux-image-2.6.32-38-generic-pae 2.6.32-38.83
Linux kernel image for version 2.6.32 on x86
ii linux-image-2.6.32-39-generic-pae 2.6.32-39.86
Linux kernel image for version 2.6.32 on x86
ii linux-image-2.6.32-40-generic-pae 2.6.32-40.87
Linux kernel image for version 2.6.32 on x86
ii linux-image-2.6.32-41-generic-pae 2.6.32-41.91
Linux kernel image for version 2.6.32 on x86
ii linux-image-2.6.32-42-generic-pae 2.6.32-42.96
Linux kernel image for version 2.6.32 on x86
ii linux-image-2.6.32-43-generic-pae 2.6.32-43.97
Linux kernel image for version 2.6.32 on x86
ii linux-image-2.6.32-44-generic-pae 2.6.32-44.98
Linux kernel image for version 2.6.32 on x86
ii linux-image-generic-pae 2.6.32.44.51
Generic Linux kernel image

root@351973-app4:~# uptime
 10:47:08 up 516 days, 44 min, 2 users, load average: 0.01, 0.02, 0.00
root@351973-app4:~#

Regards,

Ramesh R

On Wed, Aug 7, 2013 at 3:11 PM, Manfred Hampl <
<email address hidden>> wrote:

> Your question #233621 on ntp in Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/ntp/+question/233621
>
> Status: Open => Answered
>
> Manfred Hampl proposed the following answer:
> The output of "df -i" shows "183264 181569 1695 100% /usr". You have
> used (almost) all inodes on the /usr file system, leading to the error
> message "No space left on device".
>
> To solve that you should delete files on that file system, and the best
> candidates are packages that have been installed, but that are not
> needed any more. Kernel header files for old and obsolete kernel
> versions are a good candidate for deletion. Even the package management
> suggest that these outdated kernel header packages are deinstalled.
>
> I recommend running this command, it should have no negative effect,
> even on a running production server:
>
> sudo dpkg -P linux-headers-2.6.32-37 \
> linux-headers-2.6.32-38 \
> linux-headers-2.6.32-40 \
> linux-headers-2.6.32-41 \
> linux-headers-2.6.32-42
>
> What puzzles me a bit is that you are still running the 2.6.32-39
> -generic-pae kernel version (according to uname -a), although higher
> kernel versions are available. Either something went wrong at the
> attempt to install the newer kernels (maybe caused by no space left), or
> your system has never been rebooted after the installation of the newer
> kernels to load the newer kernel.
>
> Please provide the output of
>
> uptime
> dpkg -l | grep linux-image
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
>
> https://answers.launchpad.net/ubuntu/+source/ntp/+question/233621/+confirm?answer_id=9
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/ubuntu/+source/ntp/+question/233621
>
> You received this question notification because you asked the question.
>

--
Regards

Ramesh R

Revision history for this message
ramesh raman (rbmramesh) said :
#12

Hi Manfred,

The /usr filesystem comes under LVM. Please find the details of disk space
and VG details . You advise me from this
root@351973-app4:~# vgdisplay
  --- Volume group ---
  VG Name vg1
  System ID
  Format lvm2
  Metadata Areas 1
  Metadata Sequence No 19
  VG Access read/write
  VG Status resizable
  MAX LV 0
  Cur LV 5
  Open LV 5
  Max PV 0
  Cur PV 1
  Act PV 1
  VG Size 40.00 GiB
  PE Size 4.00 MiB
  Total PE 10239
  Alloc PE / Size 5958 / 23.27 GiB
  Free PE / Size 4281 / 16.72 GiB
  VG UUID CklRa7-0Thp-DIuq-z3Dm-wbF0-QyWW-IPk8IJ

jaiken@351973-app4:~$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg1-lv_root
                      7.4G 3.7G 3.4G 52% /
none 2.0G 204K 2.0G 1% /dev
tmpfs 2.0G 0 2.0G 0% /dev/shm
none 2.0G 140K 2.0G 1% /var/run
none 2.0G 0 2.0G 0% /var/lock
none 2.0G 0 2.0G 0% /lib/init/rw
/dev/mapper/vg1-lv_tmp
                      1.9G 85M 1.7G 5% /tmp
/dev/sda1 184M 126M 50M 72% /boot
/dev/sda4 35G 27G 6.2G 82% /home
/dev/mapper/vg1-lv_usr
                      2.8G 1.7G 1.0G 62% /usr
/dev/mapper/vg1-lv_var
                      9.2G 3.2G 5.6G 36% /var
/dev/sdb1 114G 84G 25G 78% /localdatastore

Regards,
Ramesh

On Wed, Aug 7, 2013 at 3:20 PM, RAMESH RAMAN <email address hidden> wrote:

> Hi Manfred,
>
> Please Find the details. Kindly suggest me what can i do next
>
> root@351973-app4:~# dpkg -l | grep linux-image
> ii linux-image-2.6.32-37-generic-pae 2.6.32-37.81
> Linux kernel image for version 2.6.32 on x86
> ii linux-image-2.6.32-38-generic-pae 2.6.32-38.83
> Linux kernel image for version 2.6.32 on x86
> ii linux-image-2.6.32-39-generic-pae 2.6.32-39.86
> Linux kernel image for version 2.6.32 on x86
> ii linux-image-2.6.32-40-generic-pae 2.6.32-40.87
> Linux kernel image for version 2.6.32 on x86
> ii linux-image-2.6.32-41-generic-pae 2.6.32-41.91
> Linux kernel image for version 2.6.32 on x86
> ii linux-image-2.6.32-42-generic-pae 2.6.32-42.96
> Linux kernel image for version 2.6.32 on x86
> ii linux-image-2.6.32-43-generic-pae 2.6.32-43.97
> Linux kernel image for version 2.6.32 on x86
> ii linux-image-2.6.32-44-generic-pae 2.6.32-44.98
> Linux kernel image for version 2.6.32 on x86
> ii linux-image-generic-pae 2.6.32.44.51
> Generic Linux kernel image
>
> root@351973-app4:~# uptime
> 10:47:08 up 516 days, 44 min, 2 users, load average: 0.01, 0.02, 0.00
> root@351973-app4:~#
>
>
> Regards,
>
> Ramesh R
>
>
>
> On Wed, Aug 7, 2013 at 3:11 PM, Manfred Hampl <
> <email address hidden>> wrote:
>
>> Your question #233621 on ntp in Ubuntu changed:
>> https://answers.launchpad.net/ubuntu/+source/ntp/+question/233621
>>
>> Status: Open => Answered
>>
>> Manfred Hampl proposed the following answer:
>> The output of "df -i" shows "183264 181569 1695 100% /usr". You have
>> used (almost) all inodes on the /usr file system, leading to the error
>> message "No space left on device".
>>
>> To solve that you should delete files on that file system, and the best
>> candidates are packages that have been installed, but that are not
>> needed any more. Kernel header files for old and obsolete kernel
>> versions are a good candidate for deletion. Even the package management
>> suggest that these outdated kernel header packages are deinstalled.
>>
>> I recommend running this command, it should have no negative effect,
>> even on a running production server:
>>
>> sudo dpkg -P linux-headers-2.6.32-37 \
>> linux-headers-2.6.32-38 \
>> linux-headers-2.6.32-40 \
>> linux-headers-2.6.32-41 \
>> linux-headers-2.6.32-42
>>
>> What puzzles me a bit is that you are still running the 2.6.32-39
>> -generic-pae kernel version (according to uname -a), although higher
>> kernel versions are available. Either something went wrong at the
>> attempt to install the newer kernels (maybe caused by no space left), or
>> your system has never been rebooted after the installation of the newer
>> kernels to load the newer kernel.
>>
>> Please provide the output of
>>
>> uptime
>> dpkg -l | grep linux-image
>>
>> --
>> If this answers your question, please go to the following page to let us
>> know that it is solved:
>>
>> https://answers.launchpad.net/ubuntu/+source/ntp/+question/233621/+confirm?answer_id=9
>>
>> If you still need help, you can reply to this email or go to the
>> following page to enter your feedback:
>> https://answers.launchpad.net/ubuntu/+source/ntp/+question/233621
>>
>> You received this question notification because you asked the question.
>>
>
>
>
> --
> Regards
>
> Ramesh R
>

--
Regards

Ramesh R

Revision history for this message
Manfred Hampl (m-hampl) said :
#13

It is impossible to give advice without knowing details. I can only summarize from what I see in your output:

You are running a system on kernel 2.6.32-39-generic-pae, although newer kernel versions (up to 2.6.32-44) are already installed on your system.
You have hit the inode limit on /usr.
You have many kernel header packages installed, I am sure that your system does not need them at all, so they could be deinstalled to free up space on /usr.
Ubuntu 10.04 is supported only for the server version and no more for the desktop version. Your starting point was error messages at the attempt to install forefox, and firefox is not a server package, but a desktop application. So this is not supported any more.

Your system is running outdated program versions, because some updates failed. ("0 upgraded, 1 newly installed, 0 to remove and 125 not upgraded. 2 not fully installed or removed.")

I strongly recommend a cleanup action to remove outdated kernel header packages with a command like the following:
sudo dpkg -P \
linux-headers-2.6.32-37 \
linux-headers-2.6.32-37-generic-pae \
linux-headers-2.6.32-38 \
linux-headers-2.6.32-38-generic-pae \
linux-headers-2.6.32-40 \
linux-headers-2.6.32-40-generic-pae \
linux-headers-2.6.32-41 \
linux-headers-2.6.32-41-generic-pae \
linux-headers-2.6.32-42 \
linux-headers-2.6.32-42-generic-pae \
linux-headers-2.6.32-43 \
linux-headers-2.6.32-43-generic-pae

You have to develop a software life cycle concept: How do you want to apply package updates on that server? Are you happy to live with the software packages in the status as they were when the server was installed - in that case you could disable all updating activties. Or do you think it makes sense to apply updates of the installed packages - in that case you should set up a plan how at certain moments in time (maybe once a month or once every quarter) you can apply the updates and then reboot the server for all changes to take effect.

Revision history for this message
ramesh raman (rbmramesh) said :
#14

Hi Manfred,

Actually we tried to install sysstat package in the server. That time only
we received this error.
For Example only i tried firefox

Regards,
Ramesh

On Wed, Aug 7, 2013 at 3:51 PM, Manfred Hampl <
<email address hidden>> wrote:

> Your question #233621 on ntp in Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/ntp/+question/233621
>
> Status: Open => Answered
>
> Manfred Hampl proposed the following answer:
> It is impossible to give advice without knowing details. I can only
> summarize from what I see in your output:
>
> You are running a system on kernel 2.6.32-39-generic-pae, although newer
> kernel versions (up to 2.6.32-44) are already installed on your system.
> You have hit the inode limit on /usr.
> You have many kernel header packages installed, I am sure that your system
> does not need them at all, so they could be deinstalled to free up space on
> /usr.
> Ubuntu 10.04 is supported only for the server version and no more for the
> desktop version. Your starting point was error messages at the attempt to
> install forefox, and firefox is not a server package, but a desktop
> application. So this is not supported any more.
>
> Your system is running outdated program versions, because some updates
> failed. ("0 upgraded, 1 newly installed, 0 to remove and 125 not
> upgraded. 2 not fully installed or removed.")
>
>
> I strongly recommend a cleanup action to remove outdated kernel header
> packages with a command like the following:
> sudo dpkg -P \
> linux-headers-2.6.32-37 \
> linux-headers-2.6.32-37-generic-pae \
> linux-headers-2.6.32-38 \
> linux-headers-2.6.32-38-generic-pae \
> linux-headers-2.6.32-40 \
> linux-headers-2.6.32-40-generic-pae \
> linux-headers-2.6.32-41 \
> linux-headers-2.6.32-41-generic-pae \
> linux-headers-2.6.32-42 \
> linux-headers-2.6.32-42-generic-pae \
> linux-headers-2.6.32-43 \
> linux-headers-2.6.32-43-generic-pae
>
> You have to develop a software life cycle concept: How do you want to
> apply package updates on that server? Are you happy to live with the
> software packages in the status as they were when the server was
> installed - in that case you could disable all updating activties. Or do
> you think it makes sense to apply updates of the installed packages - in
> that case you should set up a plan how at certain moments in time (maybe
> once a month or once every quarter) you can apply the updates and then
> reboot the server for all changes to take effect.
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
>
> https://answers.launchpad.net/ubuntu/+source/ntp/+question/233621/+confirm?answer_id=12
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/ubuntu/+source/ntp/+question/233621
>
> You received this question notification because you asked the question.
>

--
Regards

Ramesh R

Revision history for this message
Manfred Hampl (m-hampl) said :
#15

When you want to install additional packages, you have to make sure that you have enough space on your file systems, and that your package management system is in a consistent state. In the moment the system you are talking about has neither.

Revision history for this message
ramesh raman (rbmramesh) said :
#16

Hi Manfred,

Shall i extend the File system with help of free VG.

Ramesh R

On Wed, Aug 7, 2013 at 4:16 PM, Manfred Hampl <
<email address hidden>> wrote:

> Your question #233621 on ntp in Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/ntp/+question/233621
>
> Status: Open => Answered
>
> Manfred Hampl proposed the following answer:
> When you want to install additional packages, you have to make sure that
> you have enough space on your file systems, and that your package
> management system is in a consistent state. In the moment the system you
> are talking about has neither.
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
>
> https://answers.launchpad.net/ubuntu/+source/ntp/+question/233621/+confirm?answer_id=14
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/ubuntu/+source/ntp/+question/233621
>
> You received this question notification because you asked the question.
>

--
Regards

Ramesh R

Revision history for this message
Manfred Hampl (m-hampl) said :
#17

You have two choices:

1. Set up software live cycle management and housekeeping on the system, with plans how to install new and changed software and how to remove outdated packages and other obsolete files.
or
2. Let the system be unmanaged, until you hit a wall (no space left on device), perform troubleshooting (add more space to cure the symptom but not the cause), and let the system run unattended and unmaintained until it hits the next wall, and so on.

My recommendation would be to run the dpkg command to delete obsolete kernel header files in any case, to reduce the risk of the system crashing due to no free inodes on the /usr file system.

Revision history for this message
ramesh raman (rbmramesh) said :
#18

Hi Manfred,

We have tried to purge linux-headers-2.6.32-37, but got the below error,
Please advice.

root@351973-app4:~# dpkg -P linux-headers-2.6.32-37
dpkg: dependency problems prevent removal of linux-headers-2.6.32-37:
 linux-headers-2.6.32-37-generic-pae depends on linux-headers-2.6.32-37.
dpkg: error processing linux-headers-2.6.32-37 (--purge):
 dependency problems - not removing
Errors were encountered while processing:
 linux-headers-2.6.32-37
root@351973-app4:~#

Regards,
Ramesh

On Wed, Aug 7, 2013 at 5:11 PM, Manfred Hampl <
<email address hidden>> wrote:

> Your question #233621 on ntp in Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/ntp/+question/233621
>
> Status: Open => Answered
>
> Manfred Hampl proposed the following answer:
> You have two choices:
>
> 1. Set up software live cycle management and housekeeping on the system,
> with plans how to install new and changed software and how to remove
> outdated packages and other obsolete files.
> or
> 2. Let the system be unmanaged, until you hit a wall (no space left on
> device), perform troubleshooting (add more space to cure the symptom but
> not the cause), and let the system run unattended and unmaintained until it
> hits the next wall, and so on.
>
> My recommendation would be to run the dpkg command to delete obsolete
> kernel header files in any case, to reduce the risk of the system
> crashing due to no free inodes on the /usr file system.
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
>
> https://answers.launchpad.net/ubuntu/+source/ntp/+question/233621/+confirm?answer_id=16
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/ubuntu/+source/ntp/+question/233621
>
> You received this question notification because you asked the question.
>

--
Regards

Ramesh R

Revision history for this message
Manfred Hampl (m-hampl) said :
#19

There are two packages belonging together, and you have to purge the ...-generic-pae package first, or remove both in one command together like this:

sudo dpkg -P \
linux-headers-2.6.32-37 \
linux-headers-2.6.32-37-generic-pae \
linux-headers-2.6.32-38 \
linux-headers-2.6.32-38-generic-pae \
linux-headers-2.6.32-40 \
linux-headers-2.6.32-40-generic-pae \
linux-headers-2.6.32-41 \
linux-headers-2.6.32-41-generic-pae \
linux-headers-2.6.32-42 \
linux-headers-2.6.32-42-generic-pae \
linux-headers-2.6.32-43 \
linux-headers-2.6.32-43-generic-pae

Revision history for this message
ramesh raman (rbmramesh) said :
#20

Hi Manfred,

It is working fine. Thanks For your valuable support.

Special Thanks to you.

Thanks&Regards,
Ramesh R

On Wed, Aug 7, 2013 at 5:46 PM, Manfred Hampl <
<email address hidden>> wrote:

> Your question #233621 on ntp in Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/ntp/+question/233621
>
> Status: Open => Answered
>
> Manfred Hampl proposed the following answer:
> There are two packages belonging together, and you have to purge the
> ...-generic-pae package first, or remove both in one command together
> like this:
>
> sudo dpkg -P \
> linux-headers-2.6.32-37 \
> linux-headers-2.6.32-37-generic-pae \
> linux-headers-2.6.32-38 \
> linux-headers-2.6.32-38-generic-pae \
> linux-headers-2.6.32-40 \
> linux-headers-2.6.32-40-generic-pae \
> linux-headers-2.6.32-41 \
> linux-headers-2.6.32-41-generic-pae \
> linux-headers-2.6.32-42 \
> linux-headers-2.6.32-42-generic-pae \
> linux-headers-2.6.32-43 \
> linux-headers-2.6.32-43-generic-pae
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
>
> https://answers.launchpad.net/ubuntu/+source/ntp/+question/233621/+confirm?answer_id=18
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/ubuntu/+source/ntp/+question/233621
>
> You received this question notification because you asked the question.
>

--
Regards

Ramesh R

Revision history for this message
Manfred Hampl (m-hampl) said :
#21

The command

dpkg --audit

should show if there is something wrong with your package management, e.g. a package only half installed or dependency problems.

Please provide its output, and the output of

df -h
df -i

Revision history for this message
ramesh raman (rbmramesh) said :
#22

Hi Manfred,

Please find the details.

root@351973-app4:~# dpkg --audit
root@351973-app4:~# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg1-lv_root
                      7.4G 3.7G 3.4G 52% /
none 2.0G 204K 2.0G 1% /dev
tmpfs 2.0G 0 2.0G 0% /dev/shm
none 2.0G 140K 2.0G 1% /var/run
none 2.0G 0 2.0G 0% /var/lock
none 2.0G 0 2.0G 0% /lib/init/rw
/dev/mapper/vg1-lv_tmp
                      1.9G 85M 1.7G 5% /tmp
/dev/sda1 184M 126M 50M 72% /boot
/dev/sda4 35G 27G 6.2G 82% /home
/dev/mapper/vg1-lv_usr
                      2.8G 1.4G 1.3G 53% /usr
/dev/mapper/vg1-lv_var
                      9.2G 3.2G 5.6G 36% /var
/dev/sdb1 114G 84G 25G 78% /localdatastore
root@351973-app4:~# df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/mapper/vg1-lv_root
                      488640 87066 401574 18% /
none 206486 721 205765 1% /dev
tmpfs 208794 1 208793 1% /dev/shm
none 208794 89 208705 1% /var/run
none 208794 5 208789 1% /var/lock
none 208794 3 208791 1% /lib/init/rw
/dev/mapper/vg1-lv_tmp
                      121920 78 121842 1% /tmp
/dev/sda1 48768 248 48520 1% /boot
/dev/sda4 2293760 593028 1700732 26% /home
/dev/mapper/vg1-lv_usr
                      183264 119449 63815 66% /usr
/dev/mapper/vg1-lv_var
                      610800 24601 586199 5% /var
/dev/sdb1 7536640 474446 7062194 7% /localdatastore

Regards,
Ramesh

On Wed, Aug 7, 2013 at 6:11 PM, Manfred Hampl <
<email address hidden>> wrote:

> Your question #233621 on ntp in Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/ntp/+question/233621
>
> Status: Open => Needs information
>
> Manfred Hampl requested more information:
> The command
>
> dpkg --audit
>
> should show if there is something wrong with your package management,
> e.g. a package only half installed or dependency problems.
>
> Please provide its output, and the output of
>
> df -h
> df -i
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https://answers.launchpad.net/ubuntu/+source/ntp/+question/233621
>
> You received this question notification because you asked the question.
>

--
Regards

Ramesh R

Revision history for this message
Manfred Hampl (m-hampl) said :
#23

ok, dpkg --audit does not show any output, so your package management system seems consistent.
df shows that for the time being there is enough space left on /usr that you could try installing packages again.

Revision history for this message
ramesh raman (rbmramesh) said :
#24

Hi Manfred,

Thanks. It is working fine now. I have installed some package, there is no
problem in the package installation. Thanks for your support.

Regards,
Ramesh

On Wed, Aug 7, 2013 at 6:31 PM, Manfred Hampl <
<email address hidden>> wrote:

> Your question #233621 on ntp in Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/ntp/+question/233621
>
> Status: Open => Answered
>
> Manfred Hampl proposed the following answer:
> ok, dpkg --audit does not show any output, so your package management
> system seems consistent.
> df shows that for the time being there is enough space left on /usr that
> you could try installing packages again.
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
>
> https://answers.launchpad.net/ubuntu/+source/ntp/+question/233621/+confirm?answer_id=22
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/ubuntu/+source/ntp/+question/233621
>
> You received this question notification because you asked the question.
>

--
Regards

Ramesh R

Revision history for this message
Manfred Hampl (m-hampl) said :
#25

If the problem has been resolved, please mark that question as solved.

And don't forget to set up regular housekeeping to avoid that you are running into the "no space left on device" problem again.

Revision history for this message
ramesh raman (rbmramesh) said :
#26

Hi Manfred,

Thanks, How to get latest kernel with out any impact to server.

Regards,
Ramesh

On Wed, Aug 7, 2013 at 11:01 PM, Manfred Hampl <
<email address hidden>> wrote:

> Your question #233621 on ntp in Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/ntp/+question/233621
>
> Status: Open => Answered
>
> Manfred Hampl proposed the following answer:
> If the problem has been resolved, please mark that question as solved.
>
> And don't forget to set up regular housekeeping to avoid that you are
> running into the "no space left on device" problem again.
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
>
> https://answers.launchpad.net/ubuntu/+source/ntp/+question/233621/+confirm?answer_id=24
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/ubuntu/+source/ntp/+question/233621
>
> You received this question notification because you asked the question.
>

--
Regards

Ramesh R

Revision history for this message
Manfred Hampl (m-hampl) said :
#27

"Getting the latest kernel without any impact to server" is not possible.

After downloading and installing a new kernel you have to reboot the system to activate it.

I would have expected that you are aware of such basics if you are running a production server.

Can you help with this problem?

Provide an answer of your own, or ask ramesh raman for more information if necessary.

To post a message you must log in.