Extracting templates from packages: 100% Preconfiguring packages ... dpkg: too-long line or missing newline in `/var/lib/dpkg/triggers/ldconfig' E: Sub-process /usr/bin/dpkg returned an error code (2) A package failed to install. Trying to recover:

Bug #184449 reported by Dan Williamson
4
Affects Status Importance Assigned to Milestone
Ubuntu
Invalid
Undecided
Unassigned

Bug Description

Any update or installation of new packages. In this case I was trying to add KDE and packages related to KDE.

Best Regards,

Dan Williamson

Revision history for this message
Dan Williamson (danw-shawlink) wrote :

If there is a fix let me know please?

Revision history for this message
Dan Williamson (danw-shawlink) wrote :

Found bogus characters in file /var/lib/dpkg/triggers/ldconfig .... "16] hd"
removed and now works fine

Revision history for this message
Greg Grossmeier (greg.grossmeier) wrote :

Are you able to reproduce this bug anymore (creating a situation where the bad characters are added to the ldconfig file)?

If not, I will close it since we can't debug it anymore.

Thanks!

Revision history for this message
Dan Williamson (danw-shawlink) wrote : Re: [Bug 184449] Re: Extracting templates from packages: 100% Preconfiguring packages ... dpkg: too-long line or missing newline in `/var/lib/dpkg/triggers/ldconfig' E: Sub-process /usr/bin/dpkg returned an error code (2) A package failed to install. Trying to recover:

Hi Greg

It occurred when Ubuntu was doing it's first update and was interrupted
or failed part way through the the download and installation of update
packages. It wrote some garbage in the file and when it tried to
recover and redo the update installation it choked on the characters
written to the file on the failed attempt. When I cleared the file it
did the right thing and has not been a problem since.

I could try to re-produce it on the next update if you wish and let you
know or just let anyone know that the error means there is a partial
line written or garbage characters in the ldconfig file.

By the way...nice work on this distro...I am so not used to things
working right out of the gate..I am a Slackware/Redhat user this is a
pleasant experience so far. Similar to Redhat...some things are in
different places and called different things. It will take a little
time to get my self sorted out...great work!

Best Regards,

Dan Williamson
Network Engineer
danw@5gnetworks.com

On Fri, 2008-02-22 at 04:32 +0000, Greg Grossmeier wrote:
> Are you able to reproduce this bug anymore (creating a situation where
> the bad characters are added to the ldconfig file)?
>
> If not, I will close it since we can't debug it anymore.
>
> Thanks!
>
> ** Changed in: ubuntu
> Status: New => Incomplete
>

Revision history for this message
Greg Grossmeier (greg.grossmeier) wrote :

Thanks for the info Dan.

I think for now the best course of action is to mark this bug "invalid" ("closed") and if you experience it again later (or reproduce it) you can report a new bug. If you end up reproducing the bug go ahead and attach the file which contains the corrupt characters and anything else this page suggests: https://wiki.ubuntu.com/DebuggingUpdateManager

Thanks for the compliments also. I'm not a developer, just a volunteer bug triager, but comments of appreciation are always... appreciated.

Best,

Greg

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.