database package broken

Asked by Budi Mulyono

thinkpad@ubuntu:~$ sudo fuser -vvv /var/lib/dpkg/lock
[sudo] password for thinkpad:
thinkpad@ubuntu:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=11.10
DISTRIB_CODENAME=oneiric
DISTRIB_DESCRIPTION="Ubuntu 11.10"
thinkpad@ubuntu:~$ uname -a
Linux ubuntu 3.0.0-12-generic #20-Ubuntu SMP Fri Oct 7 14:50:42 UTC 2011 i686 i686 i386 GNU/Linux
thinkpad@ubuntu:~$ sudo rm /var/lib/apt/lists/lock
rm: tidak dapat menghapus `/var/lib/apt/lists/lock': Tidak ada berkas atau direktori seperti itu
thinkpad@ubuntu:~$ sudo cp -arf /var/lib/dpkg /var/lib/dpkg.backup
thinkpad@ubuntu:~$ sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status
thinkpad@ubuntu:~$ sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/available
thinkpad@ubuntu:~$ sudo rm -rf /var/lib/dpkg/updates/*
thinkpad@ubuntu:~$ sudo rm -rf /var/lib/apt/lists
thinkpad@ubuntu:~$ sudo rm /var/cache/apt/*.bin
thinkpad@ubuntu:~$ sudo mkdir /var/lib/apt/lists
thinkpad@ubuntu:~$ sudo mkdir /var/lib/apt/lists/partial
thinkpad@ubuntu:~$ LANG=C;sudo apt-get clean
thinkpad@ubuntu:~$ LANG=C;sudo apt-get autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
thinkpad@ubuntu:~$ LANG=C;sudo apt-get --purge autoremove
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:
 wvdial : Depends: libuniconf4.6 but it is not installable
E: Unmet dependencies. Try using -f.
thinkpad@ubuntu:~$

Question information

Language:
Indonesian Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
enubuntu
Solved:
Last query:
Last reply:
Revision history for this message
Best enubuntu (mr.tennents) said :
#1

Have you tried to run apt-get -f install?
1. Open a terminal by hitting CTRL + ALT + T
2. Insert and run this command:
sudo apt-get -f install

3. Try to update with the command:
sudo apt-get update

Revision history for this message
Budi Mulyono (budmul) said :
#2

Just tried your suggestions, and it works!

Thanks.

Pada 26/10/11 22:20, Enrico "eNry" Carafa menulis:
> Your question #176328 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/176328
>
> Status: Open => Answered
>
> Enrico "eNry" Carafa proposed the following answer:
> Have you tried to run apt-get -f install?
> 1. Open a terminal by hitting CTRL + ALT + T
> 2. Insert and run this command:
> sudo apt-get -f install
>
> 3. Try to update with the command:
> sudo apt-get update
>

Revision history for this message
enubuntu (mr.tennents) said :
#3

Please mark the question as solved and choose my answer as best if I have helped you.

Revision history for this message
Budi Mulyono (budmul) said :
#4

Thanks Enrico "eNry" Carafa, that solved my question.