I can't upgrade my precise pangolin due to a dependency problem

Asked by Leonardo

after upgrade my ubuntu (pangolin) i got this message:
libdrm-dev : Depens: libkms1 (= 2.4.39-0ubuntu0.1) but 2.4.32-1ubuntu1 is installed
now, the systems recommends to run:
«apt-get -f install»
After this, the system try to actualize the package: libkms1 and after some time the messages are:
dpkg: error in process /var/cache/apt/archives/libkms1_2.4.39-0ubuntu0.1_amd64.deb (--unpack):
i cannot be installed the new information file `/var/lib/dpkg/tmp.ci/postinst' as `/var/lib/dpkg/info/libkms1:amd64.postinst': Error of input/output
Some errors were found to process:
 /var/cache/apt/archives/libkms1_2.4.39-0ubuntu0.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

(sorry for the translation because i got the errors in spanish).

Any idea how to solve this problem?

Thanks in advance,

leo

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu libdrm Edit question
Assignee:
No assignee Edit question
Solved by:
Manfred Hampl
Solved:
Last query:
Last reply:
Revision history for this message
Leonardo (espinosa-leal) said :
#1

after upgrade my ubuntu (pangolin) i got this message:
libdrm-dev : Depens: libkms1 (= 2.4.39-0ubuntu0.1) but 2.4.32-1ubuntu1 is installed
now, the systems recommends to run:
«apt-get -f install»
After this, the system try to actualize the package: libkms1 and after some time the messages are:
dpkg: error in process /var/cache/apt/archives/libkms1_2.4.39-0ubuntu0.1_amd64.deb (--unpack):
i cannot be installed the new information file `/var/lib/dpkg/tmp.ci/postinst' as `/var/lib/dpkg/info/libkms1:amd64.postinst': Error of input/output
Some errors were found to process:
 /var/cache/apt/archives/libkms1_2.4.39-0ubuntu0.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

(sorry for the translation because i got the errors in spanish).

Any idea how to solve this problem?

Thanks in advance,

leo

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

What is the output of:

lsb_release -a; uname -a;apt-cache policy libdrm-dev libkms1; df -h

Thanks

Revision history for this message
Leonardo (espinosa-leal) said :
#3

Hi, the output is

No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04.1 LTS
Release: 12.04
Codename: precise
Linux Itarka 3.2.0-36-generic #57-Ubuntu SMP Tue Jan 8 21:44:52 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
libdrm-dev:
  Instalados: 2.4.39-0ubuntu0.1
  Candidato: 2.4.39-0ubuntu0.1
  Tabla de versión:
 *** 2.4.39-0ubuntu0.1 0
        500 http://archive.ubuntu.com/ubuntu/ precise-proposed/main amd64 Packages
        100 /var/lib/dpkg/status
     2.4.32-1ubuntu1 0
        500 http://archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
libkms1:
  Instalados: 2.4.32-1ubuntu1
  Candidato: 2.4.39-0ubuntu0.1
  Tabla de versión:
     2.4.39-0ubuntu0.1 0
        500 http://archive.ubuntu.com/ubuntu/ precise-proposed/main amd64 Packages
 *** 2.4.32-1ubuntu1 0
        500 http://archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
        100 /var/lib/dpkg/status
S.ficheros Tamaño Usado Disp Uso% Montado en
/dev/sda7 303G 248G 40G 87% /
udev 2,0G 4,0K 2,0G 1% /dev
tmpfs 785M 1,3M 783M 1% /run
none 5,0M 0 5,0M 0% /run/lock
none 2,0G 1,3M 2,0G 1% /run/shm
/dev/sda5 24G 24G 305M 99% /windows

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

You have the proposed repo enabled. This source is not for the lay user. Disabling it will probably fix the issue

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

A message like "`/var/lib/dpkg/info/libkms1:amd64.postinst': Error of input/output" can indicate a file system problem. You should perfom a file system check on your hard disks.

Revision history for this message
Leonardo (espinosa-leal) said :
#6

Dear Manfred,

yes, my problem was that i had problems with my hard disk... I check it with gnome-disk-utility and it found bad sectors... I was waiting for I while to solve this problem, however something weird happens today: I restart my ubuntu, then it starts to take a lot of time to charge the graphical interface, then i restarted again and i use the recovery mode, once i got there a message appears, something like i had problems with my disk, and do you want to solve it? i did enter (YES) and the system did something, i don't know really and it restarted again, then I access again and once i logged in, i upgrade my system and everything was OK, I check again with gnome-disk-utility and the message was that my disk is OK... Someone can explain me what happens? and If is better to format the disk trying to repair it?
Cheers,

Revision history for this message
Leonardo (espinosa-leal) said :
#7

Thanks Manfred Hampl, that solved my question.