Re: Fwd: libqt4-qt3support: apt fails "missing new-line"
On Sat, May 03, 2008 at 09:21:57 -0400, Curt Howland wrote:
> Hi.
>
> I asked about this over in Debian-user, and didn't see any responses.
> So I opened a ticket and it said it was forwarding it to the qt-kde
> team.
>
> I guess I might as well as here too, then, and maybe we can get it
> cleared up and I'll ask for the ticket to be closed.
>
> Is there any way I can find the "files list" and add a "newline"
> myself? On the other hand, I really REALLY do not like the idea of
> messing with the internal apt files...
[...]
> Package: libqt4-qt3support
> Version: 4.4.0~rc1-5
> Severity: important
>
>
> Every time I try to do anyting with apt, the following error
> occurs:
>
> =====
> Extracting templates from packages: 100%
> Preconfiguring packages ...
> (Reading database ... dpkg: error
> processing /var/cache/apt/archives/libgnutls26_2.2.3~rc-1_i386.deb
> (--unpack):
> files list file for package `libqt4-qt3support' is missing final
> newline
> Errors were encountered while processing:
> /var/cache/apt/archives/libgnutls26_2.2.3~rc-1_i386.deb
> Processing was halted because there were too many errors.
> E: Sub-process /usr/bin/dpkg returned an error code (1)
I think the relevant file is /var/lib/dpkg/info/libqt4-qt3support.list.
Here is what this file looks like for me, for the same version of
libqt4-qt3support:
florian@pc0197:~$ cat /var/lib/dpkg/info/libqt4-qt3support.list
/.
/usr
/usr/share
/usr/share/lintian
/usr/share/lintian/overrides
/usr/share/lintian/overrides/libqt4-qt3support
/usr/share/doc
/usr/share/doc/libqt4-qt3support
/usr/share/doc/libqt4-qt3support/copyright
/usr/share/doc/libqt4-qt3support/GPL_EXCEPTION_ADDENDUM.TXT.gz
/usr/share/doc/libqt4-qt3support/changelog.Debian.gz
/usr/lib
/usr/lib/qt4
/usr/lib/qt4/plugins
/usr/lib/qt4/plugins/designer
/usr/lib/qt4/plugins/designer/libqt3supportwidgets.so
/usr/lib/qt4/plugins/accessible
/usr/lib/qt4/plugins/accessible/libqtaccessiblecompatwidgets.so
/usr/lib/libQt3Support.so.4.4.0
/usr/lib/libQt3Support.so.4.4
/usr/lib/libQt3Support.so.4
florian@pc0197:~$
You can try to restore the file. Google finds mailing list posts
claiming that such corrupt *.list files can simply be deleted, then
apt/dpkg will complain about the missing file but it will allow you to
uninstall and then reinstall the package in question. I have never tried
that myself.
You might want to use fsck and smartmontools to figure out if there is a
problem with your hard disk.
--
Regards, | http://users.icfo.es/Florian.Kulzer
Florian |
Reply to: