Dpkg unrecoverable fatal error aborting ошибка

Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  apt apt-transport-https apt-utils dpkg libapt-inst2.0 libapt-pkg5.0 ntpdate
  oracle-java8-installer oracle-java8-set-default thermald
10 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/4,389 kB of archives.
After this operation, 8,192 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Preconfiguring packages ...
dpkg: unrecoverable fatal error, aborting:
 files list file for package 'linux-generic' is missing final newline
E: Sub-process /usr/bin/dpkg returned an error code (2)

I already tried the usual stuff like:

 sudo dpkg --configure -a 
 sudo apt-get -f install
 sudo apt-get clean
 sudo apt-get update && sudo apt-get upgrade

Any help, thanks!

cat -net /var/lib/dpkg/info/linux-generic.list
     1  ^LbM-BM-^FRq^MU^Evalueq^NK^HubU^Mcertificationq^ONU^Hoverviewq^PNU$
     2  updated_atq^QNU^Vavailable_translationsq^RNU^Dyearq^SMM-CM-^]^GU^Fimagesq^TNU^Bidq^UNU^Ipaused_atq^VNU^Eindex

pa4080's user avatar

pa4080

29.2k10 gold badges83 silver badges161 bronze badges

asked Apr 27, 2017 at 21:09

Johnny Wong's user avatar

4

I had similar issues with the following error:

dpkg: unrecoverable fatal error, aborting:
 files list file for package 'libboost-regex1.55.0:armhf' is missing final newline
E: Sub-process /usr/bin/dpkg returned an error code (2)

However, the folder /var/lib/dpkg/info/linux didn’t exist on my system, as in previous post. (I was running Raspbian on a Raspberry pi 3)

I moved the following files:

/var/lib/dpkg/info/libboost-regex1.55.0:armhf.postrm
/var/lib/dpkg/info/libboost-regex1.55.0:armhf.list

Then ran:

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

It fixed the problem for me.

answered Aug 18, 2017 at 8:09

Leendert's user avatar

LeendertLeendert

4094 silver badges4 bronze badges

3

I finally had some time to fix this on my own. For future reference

I moved all the linux* files to somewhere else. ex: ~/ (home) sudo mv /var/lib/dpkg/info/linux* ./

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

That fixed it

answered May 13, 2017 at 5:43

Johnny Wong's user avatar

Johnny WongJohnny Wong

3771 gold badge3 silver badges6 bronze badges

1

Firstly you have to remove that missing file

sudo rm /var/lib/dpkg/info/linux-generic.list 

Now you can again reinstall it

sudo apt-get install linux-generic --reinstall 

answered May 13, 2020 at 8:25

Ankit Kumar's user avatar

1

I had a very similar issue and resolved it a different way, so I thought I’d share what I did. While attempting a sudo apt upgrade I received the following dpkg error:

dpkg: unrecoverable fatal error, aborting:
 files list file for package 'python3-xdg' is missing final newline
E: Sub-process /usr/bin/dpkg returned an error code (2)

I found python3-xdg.list in the /var/lib/dpkg/info/ directory and ran cat on the file. What printed out was something like this, with the command prompt immediately following the contents:

user@device:/var/lib/dpkg/info$ cat python3-xdg.list
sEDUsEDUsEDUuser@device:/var/lib/dpkg/info$

I thought I’d try editing the file, giving it the missing final newline, so printing the file would then display:

user@device:/var/lib/dpkg/info$ cat python3-xdg.list
sEDUsEDUsEDU
user@device:/var/lib/dpkg/info$

After this I had no more issues.

answered Jan 8, 2022 at 11:57

CompSciGuyIT's user avatar

I had this issue:

dpkg: unrecoverable fatal error, aborting:
 files list file for package 'rockchip-fstab' is missing final newline
E: Sub-process /usr/bin/dpkg returned an error code (2)

sudo dpkg --configure -a also did not work for me.

So, I had to edit by vim /var/lib/dpkg/info/rockchip-fstab.list as:

/. from VH

Which fixed the issue.

answered Jul 6, 2020 at 12:15

Rakib Fiha's user avatar

Rakib FihaRakib Fiha

2561 silver badge11 bronze badges

Your package database seems to be badly messed up. You should re-install the affected packages:

apt-get --reinstall install perl-base gcc-4.8-base perl-modules perl findutils liberror-perl initramfs-tools

You can add any others which turn up in error messages.

If liberror-perl is too messed up for apt-get to work, try:

wget http://ftp.de.debian.org/debian/pool/main/libe/liberror-perl/liberror-perl_0.17-1.1_all.deb
dpkg -i liberror-perl_0.17-1.1_all.deb

although if the last «fatal error» in dpkg really is as bad as it sounds, you’ll need to do the above from a rescue system (mount your file systems under /mnt in the rescue system, then run dpkg --root=/mnt -i liberror-perl_0.17-1.1_all.deb).

I’m installing redis, everytime I run this command sudo apt install redis-server I got an unrecoverable fatal error

I already tried many solutions to completly remove redis, redis-server, but nothing worked, this is the error

dpkg: unrecoverable fatal error, aborting:
unknown user 'redis' in statoverride file
E: Sub-process /usr/bin/dpkg returned an error code (2)

asked May 20, 2019 at 15:54

ELTA's user avatar

I solved it by opening the statoverride file using

sudo nano /var/lib/dpkg/statoverride

then removing the line with the user called «redis» along with any blank lines.

ashique's user avatar

ashique

8872 gold badges7 silver badges25 bronze badges

answered May 20, 2019 at 16:19

ELTA's user avatar

ELTAELTA

1,4462 gold badges12 silver badges25 bronze badges

0

  • Печать

Страницы: [1]   Вниз

Тема: dpkg. unrecoverable fatal error, aborting  (Прочитано 2405 раз)

0 Пользователей и 1 Гость просматривают эту тему.

Оффлайн
perat

При попытке установки любого пакета, появляется ошибка:

(Reading database ... 75%dpkg: unrecoverable fatal error, aborting:
 files list file for package `libgtk2.0-cil' contains empty filename
E: Sub-process /usr/bin/dpkg returned an error code (2)

Что делать? :(


Оффлайн
ArcFi

sudo mv /var/lib/dpkg/status{,.bak} ; sudo cp /var/lib/dpkg/status{-old,}


Оффлайн
perat

sudo mv /var/lib/dpkg/status{,.bak} ; sudo cp /var/lib/dpkg/status{-old,}

Не помогло:

taras@taras-desktop:~$ sudo mv /var/lib/dpkg/status{,.bak} ; sudo cp /var/lib/dpkg/status{-old,}
taras@taras-desktop:~$ sudo apt-get upgrade
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
taras@taras-desktop:~$ sudo dpkg --configure -a
Processing triggers for python-central ...
taras@taras-desktop:~$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be upgraded:
  opera
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/15.8MB of archives.
After this operation, 4,155kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Preconfiguring packages ...
(Reading database ... 75%dpkg: unrecoverable fatal error, aborting:
 files list file for package `libgtk2.0-cil' contains empty filename
E: Sub-process /usr/bin/dpkg returned an error code (2)


Оффлайн
ArcFi


Оффлайн
perat


  • Печать

Страницы: [1]   Вверх

Re: dpkg: unrecoverable fatal error, aborting:

Hi guys,

I know it is a pretty old post, but I get the solution, so if anybody also runs into that problem, he will get the solution too.

When the error appears, it is related with a certain package which info is corrupted in the dpkg database. In my situation, I get the following :

(Reading database … 55%dpkg: unrecoverable fatal error, aborting:
failed in buffer_read(fd): files list for package `kde-icons-oxygen’: Input/output error
E: Sub-process /usr/bin/dpkg returned an error code (2)

So the solution is the following :

1. Go into the /var/lib/dpkg directory
2. Make a backup of the «status» file
3. Edit the «status» file
4. Search the package that gave the error
5. Just delete the lines from this package (but let all other lines that concern other packages even if they contains the broken package in their «Replaces» or «Depends» fields)

Personally, here are the lines that I deleted :

Package: kde-icons-oxygen
Status: purge ok installed
Priority: optional
Section: kde
Installed-Size: 42952
Maintainer: Kubuntu Developers <kubuntu-devel@lists.ubuntu.com>
Architecture: all
Source: oxygen-icons
Version: 4:4.3.5-0ubuntu1~karmic1
Replaces: dolphin (<< 4:4.1.86+svn902162), kdebase-data (<= 4:4.0.0-1), kmail (<< 4:4.3.2), libkdepim4 (<< 4:4.2.85), step (<< 4:4.3.0)
Suggests: kdebase (>= 4:4.1.0-1)
Description: Oxygen icon theme for KDE 4
Oxygen is the standard icon theme for KDE 4.
Homepage: http://www.kde.org/
Original-Maintainer: Jonathan Riddell <jriddell@ubuntu.com>

6. Save changes in the «status» file
7. Run: sudo dpkg dpkg —configure -a
8. Force the reinstallation of missing dependencies (because now, there are some) : sudo apt-get -f install
I think that if the broken package does not depend on any other package (could be rare), just reinstall it : sudo apt-get install the_package
9. Everything is fine now can update, upgrade, or install new packages !

Hope this will help someone !
Cheers,
Gartss

Возможно, вам также будет интересно:

  • Dpf ошибка митсубиси паджеро спорт
  • Dpc watchdog violation ошибка синий экран
  • Dpc watchdog violation как исправить эту ошибку
  • Dozor видеорегистратор ошибка авторизации
  • Download mode asmodus ошибка

  • Понравилась статья? Поделить с друзьями:
    0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии