PDA

View Full Version : [ubuntu] libffi4 is missing final newline



waraas
August 7th, 2009, 12:46 PM
Hello Everyone,

I am new to ubuntu, but I get the basics of it. I need some help installing the new updates.

Version I am running: Ubuntu 8.04.3 LTS

My problem is that when I try to upgrade it wont let me because of the error below:

E: /var/cache/apt/archives/language-pack-en_1%3a8.04+20090402_all.deb: files list file for package `libffi4' is missing final newline

So I logged into root and deleted the file. I checked and the file was deleted, I then rebooted and then tried to reinstall the new updates, and I got the same error message as above.

I deleted the file using "rm -i /var/cache/apt/archives/language-pack-en_1%3a8.04+20090402_all.deb".

I am stuck now on what to do. I tried deleting the file and that didnt work, what other options do I have? And why would I be having this problem in the first place? Is it a bug? This has been the only problem I have had in like 2 years of using ubuntu. I have 55 updates that are pending and I would like to get them installed haha

Thanks in advance for the help :)

Partyboi2
August 7th, 2009, 01:44 PM
Hi, open a terminal and

echo -en '\n' | sudo tee -a language-pack-en.list
then

sudo dpkg --configure -a
sudo apt-get update
sudo apt-get upgrade

waraas
August 7th, 2009, 02:02 PM
Hi, open a terminal and

echo -en '\n' | sudo tee -a language-pack-en.listthen

sudo dpkg --configure -a
sudo apt-get update
sudo apt-get upgrade


Hello, Thank you so much for the help. I did what you told and the below is what I got on my end.


Do you want to continue [Y/n]? Y
Extracting templates from packages: 100%
Preconfiguring packages ...
(Reading database ... dpkg: error processing /var/cache/apt/archives/language-pack-en_1%3a8.04+20090402_all.deb (--unpack):
files list file for package `libffi4' is missing final newline
Errors were encountered while processing:
/var/cache/apt/archives/language-pack-en_1%3a8.04+20090402_all.deb
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)

Partyboi2
August 7th, 2009, 02:09 PM
Sorry, my mistake I gave the wrong name in the above command it was meant to be

echo -en '\n' | sudo tee -a /var/lib/dpkg/info/libffi4.list

waraas
August 7th, 2009, 02:15 PM
Sorry, my mistake I gave the wrong name in the above command it was meant to be

echo -en '\n' | sudo tee -a libffi4.list

Hello,

I did the line you mentioned here along with the others. I think it posted the same error, which is below :-s


Do you want to continue [Y/n]? Y
Extracting templates from packages: 100%
Preconfiguring packages ...
(Reading database ... dpkg: error processing /var/cache/apt/archives/language-pack-en_1%3a8.04+20090402_all.deb (--unpack):
files list file for package `libffi4' is missing final newline
Errors were encountered while processing:
/var/cache/apt/archives/language-pack-en_1%3a8.04+20090402_all.deb
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)


Thanks for the help, I have been working on this for 4 plus hours now haha.

Partyboi2
August 7th, 2009, 02:18 PM
My brain is in sleep mode open a terminal and do

echo -en '\n' | sudo tee -a /var/lib/dpkg/info/libffi4.list

Edit: I think my bed is calling for me lol

waraas
August 7th, 2009, 02:22 PM
My brain is in sleep mode open a terminal and do

echo -en '\n' | sudo tee -a /var/lib/dpkg/info/libffi4.listEdit: I think my bed is calling for me lol


Oh I see I should have caught that :-s Anyways I entered that and I got the same error but with a diff file. Which is 'cpp-4.2' now :-s


Do you want to continue [Y/n]? Y
Extracting templates from packages: 100%
Preconfiguring packages ...
(Reading database ... dpkg: error processing /var/cache/apt/archives/language-pack-en_1%3a8.04+20090402_all.deb (--unpack):
files list file for package `cpp-4.2' is missing final newline
Errors were encountered while processing:
/var/cache/apt/archives/language-pack-en_1%3a8.04+20090402_all.deb
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)

Partyboi2
August 7th, 2009, 02:23 PM
Do the same for cpp-4.2

echo -en '\n' | sudo tee -a /var/lib/dpkg/info/cpp-4.2.list

waraas
August 7th, 2009, 02:28 PM
Do the same for cpp-4.2

echo -en '\n' | sudo tee -a /var/lib/dpkg/info/cpp-4.2.list

Edit, Ops forget about that last part I entered it wrong somehow. haha. I entered the above and now it is saying the same thing for 'cupsys', shall I keep doing the same thing until its fixed?

waraas
August 8th, 2009, 06:11 AM
Hello,

I am sorry to double post but now I am stuck. I entered the same line as above, but I got the same error.


(Reading database ... dpkg: error processing /var/cache/apt/archives/language-pack-en_1%3a8.04+20090402_all.deb (--unpack):
files list file for package `cupsys' contains empty filename
Errors were encountered while processing:
/var/cache/apt/archives/language-pack-en_1%3a8.04+20090402_all.deb
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)


This is what I entered:


echo -en '\n' | sudo tee -a /var/lib/dpkg/info/cupsys.list

I dont know what to do now, I have done and researched the best I could on this problem. :-s

Partyboi2
August 8th, 2009, 07:06 AM
Your cupsys.list file is empty so try this

sudo mv /var/lib/dpkg/info/cupsys.list /var/lib/dpkg/info/cupsys.list.old

sudo apt-get --reinstall install cupsys

waraas
August 8th, 2009, 08:58 AM
Hello,

thank you again for the help. I have entered that and below is what I got:


(Reading database ...
dpkg: serious warning: files list file for package `cupsys' missing, assuming package has no files currently installed.
dpkg: error processing /var/cache/apt/archives/cupsys_1.3.7-1ubuntu3.5_i386.deb (--unpack):
files list file for package `libgomp1' is missing final newline
Errors were encountered while processing:
/var/cache/apt/archives/cupsys_1.3.7-1ubuntu3.5_i386.deb
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)


Also, what is this "missing newline" error mean?

Partyboi2
August 8th, 2009, 09:04 AM
It seems that your info list is all messed up, I am not sure if there is a way to fix it all up at once, or whether you will continue to have to add the newline to each one manually

echo -en '\n' | sudo tee -a /var/lib/dpkg/info/libgomp1.listThe newline is a end of line (eol) or a line break. So the error is telling you its missing a line break for that file.

waraas
August 8th, 2009, 09:16 AM
Ok, shall I just reinstall ubuntu then?

Partyboi2
August 8th, 2009, 09:19 AM
If it was me I would keep working through adding the newline for awhile and hope that it comes right.

waraas
August 8th, 2009, 09:39 AM
Hello,

Its a good thing you said that haha. I entered that last line and then it worked, the system installed all of the updates. I wanted to thank you for helping me out :)


jon@jon-desktop:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 8.04.3 LTS
Release: 8.04
Codename: hardy


Thanks again you helped me a ton! Now I need to find out how to set this to solved hehe.

Partyboi2
August 8th, 2009, 10:01 AM
Good to hear you got it working :)