Jump to content

dpkg-deb: Error premature member


KONI

Recommended Posts

Hey there,

I'm getting a dpkg-deb error when trying to perform an upgrade with apt-get:

Extracting templates from packages: 100%
Preconfiguring packages ...
dpkg-deb: error: archive '/var/cache/apt/archives/base-files_8+deb8u7_armhf.deb' 
has premature member 'control.tar.gz' before 'control.tir', giving up
dpkg: error processing archive /var/cache/apt/archives/base-files_8+deb8u7_armhf.deb (--unpack):
 subprocess dpkg-deb --control returned error exit status 2
Errors were encountered while processing:
 /var/cache/apt/archives/base-files_8+deb8u7_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

This is happening to any package at the moment. Never seen this error before. And never heard of .tir file extension either.

 

Here are my sources.lists:

root@orangepipc:~# cat /etc/apt/sources.list
deb http://httpredir.debian.org/debian jessie main contrib non-free
deb-src http://httpredir.debian.org/debian jessie main contrib non-free

deb http://httpredir.debian.org/debian/ jessie-updates main contrib non-free
deb-src http://httpredir.debian.org/debian/ jessie-updates main contrib non-free

# security packages come always from main repository
deb http://security.debian.org/ jessie/updates main contrib non-free
deb-src http://security.debian.org/ jessie/updates main contrib non-free

root@orangepipc:~# cat /etc/apt/sources.list.d/armbian.list
deb http://apt.armbian.com jessie main

This is what the content of the .deb package looks like:

root@orangepipc:/var/cache/apt/archives# ar t base-files_8+deb8u7_armhf.deb
debian-binary
control.tar.gz
data.tar.gz

I just can't make sense out of the error message...
Maybe some of you guys around know the issue

 

Thank you in advance

Link to comment
Share on other sites

I was able to fix the problem by just reinstalling dpkg as follows

apt-get install --reinstall dpkg

now I am able to upgrade and install new packages again.

 

may be some SD Card corruption or sth. ?
however an e2fsck from another PC on the Card didn't show any errors.

 

Wonder how its even possible to reinstall dpkg with apt-get.

I thought apt-get is using dpkg to install stuff...

There must be some kind of bootstraping involved here <_<

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines