PDA

View Full Version : [ubuntu] Problem during update



shaquille
September 30th, 2010, 05:00 PM
Hi there, I am facing a disgusting problem. While I am trying to update my system using update manager It downloaded the files and then while it starts installation it shows the following message


(Reading database ... 60%dpkg: unrecoverable fatal error, aborting:
files list file for package 'linux-libc-dev' is missing final newline
E: Sub-process /usr/bin/dpkg returned an error code (2)
A package failed to install. Trying to recover

And then nothing occurs. I cannot install any new package either. Every time I tried the above message was showed.

I had to add that i had been faced a bit different problem earilier. And using the following code I solved that:


sudo mv /var/lib/dpkg/updates/0103 /home/shaquille/dpkg_update_0103


sudo mv /var/lib/dpkg/updates/0104 /home/shaquille/dpkg_update_0104


sudo mv /var/lib/dpkg/updates/0105 /home/shaquille/dpkg_update_0105


sudo mv /var/lib/dpkg/updates/0106 /home/shaquille/dpkg_update_0106


sudo mv /var/lib/dpkg/updates/0107 /home/shaquille/dpkg_update_0107


sudo mv /var/lib/dpkg/updates/0108 /home/shaquille/dpkg_update_0108

and then:


sudo dpkg --configure -a

The problem was solved then.

But now with this problem what can i do?

plucky
September 30th, 2010, 08:28 PM
Hi there, I am facing a disgusting problem. While I am trying to update my system using update manager It downloaded the files and then while it starts installation it shows the following message

Quote:
(Reading database ... 60%dpkg: unrecoverable fatal error, aborting:
files list file for package 'linux-libc-dev' is missing final newline
E: Sub-process /usr/bin/dpkg returned an error code (2)
A package failed to install. Trying to recover
And then nothing occurs. I cannot install any new package either. Every time I tried the above message was showed.

From a terminal
sudo apt-get clean
sudo apt-get install -f

The first command will clear out the /var/cache/apt/archives of all the .deb files that have previously been downloaded so that the next command will download a new file before trying to fix the problem.

If you want to keep the .deb files,you will have to copy them to a different location.

Good Luck

shaquille
September 30th, 2010, 08:54 PM
From a terminal
sudo apt-get clean
sudo apt-get install -f

The first command will clear out the /var/cache/apt/archives of all the .deb files that have previously been downloaded so that the next command will download a new file before trying to fix the problem.

If you want to keep the .deb files,you will have to copy them to a different location.

Good Luck

That doesn't work. The problem still exits.

plucky
September 30th, 2010, 10:29 PM
That doesn't work. The problem still exits.

Was there any error message?

It would help if you post the results of running the commands so that we can see the results for ourselves as there might be something that gives us a clue what the problem is.

Use
blocks around the result as it is easier to read.

Try
sudo dpkg --configure -a

shaquille
October 1st, 2010, 10:59 PM
Was there any error message?

It would help if you post the results of running the commands so that we can see the results for ourselves as there might be something that gives us a clue what the problem is.


It shows the same thing:


(Reading database ... 60%dpkg: unrecoverable fatal error, aborting:
files list file for package 'linux-libc-dev' is missing final newline
E: Sub-process /usr/bin/dpkg returned an error code (2)

what should I do then?

plz.....

zepita
October 1st, 2010, 11:06 PM
If you have independant partitions for / and /home you could try reinstalling... sometimes is better to format rather than finding a fix, but you miss the experience of the process..

good luck with that

shaquille
October 1st, 2010, 11:24 PM
If you have independant partitions for / and /home you could try reinstalling... sometimes is better to format rather than finding a fix, but you miss the experience of the process..

good luck with that

I don't think it doesn't have any solution. Re-installation is the last process. I don't wanna re-install.

Aren't there any more suggestion?

plucky
October 1st, 2010, 11:35 PM
I don't think it doesn't have any solution. Re-installation is the last process. I don't wanna re-install.

Aren't there any more suggestion?

Try removing the package
sudo apt-get remove linux-libc-dev

shaquille
October 2nd, 2010, 09:08 AM
Try removing the package
sudo apt-get remove linux-libc-dev

I tried it. It doesn't work. The following result showed.



shaquille@shaquille:~$ sudo apt-get remove linux-libc-dev
[sudo] password for shaquille:
Sorry, try again.
[sudo] password for shaquille:
Sorry, try again.
[sudo] password for shaquille:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
backintime-common libsexy2
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
libc6-dev linux-libc-dev
0 upgraded, 0 newly installed, 2 to remove and 19 not upgraded.
1 not fully installed or removed.
After this operation, 23.5MB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 60%dpkg: unrecoverable fatal error, aborting:
files list file for package 'linux-libc-dev' is missing final newline
E: Sub-process /usr/bin/dpkg returned an error code (2)
shaquille@shaquille:~$

Aren't there any other way than re-installing my Ubuntu?

shaquille
October 5th, 2010, 05:49 PM
after many research i found that my usr/bin/dpkg is corrupted.
How could I replace it with a fresh one?