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
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

28.8k10 gold badges83 silver badges157 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

3993 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

3471 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

  • Печать

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

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

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]   Вверх

When i do a

apt-get upgrade

i get

Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
linux-image-3.16.0-4-amd64 : Depends: initramfs-tools (>= 0.110~) but it is not installed or
                                   linux-initramfs-tool
                          Recommends: firmware-linux-free (>= 3~) but it is not installed
                          Recommends: irqbalance but it is not installed

When i then try

apt-get -f install

It tells me

Selecting previously unselected package initramfs-tools.
dpkg: warning: files list file for package 'perl-base' missing; assuming         package has no files currently installed
dpkg: warning: files list file for package 'gcc-4.8-base:amd64' missing;    assuming package has no files currently installed
dpkg: warning: files list file for package 'perl-modules' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'perl' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'findutils' missing; assuming package has no files currently installed
dpkg: unrecoverable fatal error, aborting:
files list file for package `liberror-perl' contains empty filename
E: Sub-process /usr/bin/dpkg returned an error code (2)

How can i fix this?
I tried uninstalling those packages. Did not help because i cant.

asked Feb 28, 2017 at 11:16

felix m's user avatar

5

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).

answered Feb 28, 2017 at 15:13

Stephen Kitt's user avatar

Stephen KittStephen Kitt

388k51 gold badges996 silver badges1095 bronze badges

2

Содержание

  1. Thread: Error «cannot allocate memory» from apt upgrade
  2. Error «cannot allocate memory» from apt upgrade
  3. Re: Error «cannot allocate memory» from apt upgrade
  4. Re: Error «cannot allocate memory» from apt upgrade
  5. Re: Error «cannot allocate memory» from apt upgrade
  6. Re: Error «cannot allocate memory» from apt upgrade
  7. Re: Error «cannot allocate memory» from apt upgrade
  8. Thread: dpkg: unrecoverable fatal error
  9. dpkg: unrecoverable fatal error
  10. Re: dpkg: unrecoverable fatal error
  11. Re: dpkg: unrecoverable fatal error
  12. Thread: i cant install anything. VPS UBUNTU SERVER
  13. i cant install anything. VPS UBUNTU SERVER
  14. Name already in use
  15. til / linux / apt_get.md
  16. Footer
  17. apt-get install unzip get strange error
  18. Popular Topics
  19. Questions
  20. Welcome to the developer cloud

Thread: Error «cannot allocate memory» from apt upgrade

Thread Tools
Display

Error «cannot allocate memory» from apt upgrade

Recently got an error when trying to do a routine upgrade, Here’s the output:

Any ideas as to what caused this?
Running Ubuntu 14.04, soon to upgrade to Mint 18.3. Maybe this will be impetus to do it sooner.

thanks for any help —

Re: Error «cannot allocate memory» from apt upgrade

How much physical RAM does the computer have? And do you have a swap file or partition? If so, what size are they?

Re: Error «cannot allocate memory» from apt upgrade

Computer is a Dell Optiplex GX-20 with 1GB of physical RAM. There is a swap partition, also 1GB.
Got this system four years ago and have run apt upgrade 100-200 times with no previous problems.

Re: Error «cannot allocate memory» from apt upgrade

I would try increasing your swap to 2GB (or more) if possible.

Re: Error «cannot allocate memory» from apt upgrade

Thank you for your suggestion. Increased swap partition to 4 GB, upgrade went through without errors.
Question: is there a way of determining, before running the upgrade, how much memory will be required?

Re: Error «cannot allocate memory» from apt upgrade

Not that I’m aware of (assuming you really mean RAM and not hard disk space). Perhaps someone else knows.

Источник

Thread: dpkg: unrecoverable fatal error

Thread Tools
Display

dpkg: unrecoverable fatal error

Hi, i’m using Linux Mint Meerkat 2.6.35-27-generic. Pretty much all im trying to do is remove chromium-browser for no specific reason just that currently it is broken. (but still works fully) I really just would like to reinstall. With apt 0.8.3ubuntu7 This is what i get.

$ sudo apt reinstall chromium-browser
[sudo] password for drfrankenstein:

The following packages will be REINSTALLED:
chromium-browser
0 packages upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.

The following packages have unmet dependencies:
chromium-browser: Depends: chromium-browser-inspector but it is not going to be installed.

Last edited by Perfect Storm; April 5th, 2011 at 07:01 AM . Reason: add info

Re: dpkg: unrecoverable fatal error

fork failed: Cannot allocate memory

How much memory you got in that puppy??

Re: dpkg: unrecoverable fatal error

This may not be relevant, but any time you get a cannot allocate memory error message, do one thing first.

Open a terminal and type:

Then see if it shows any swap.

On multi-boot Linux systems, or perhaps on a linux system where a new distro is installed, it changes UUID when you format a partition.

So, if no swap (shows 0) in your terminal, type:

sudo blkid followed by password

Note the UUIDs shown.

Now open a second terminal and type

sudo kate then your sudo password, and wait for kate to open up. (Vi fans can do that, too if you wish)

In kate, open /etc/fstab and compare the UUID’s stated for each volume.

If they are different, copy them from the terminal listing by highlighting the id, and then Ctrl+Shift+c, then Ctrl+v to replace the UUID in fstab.

Edited: Once they are the same, of course, SAVE the new /etc/fstab and reboot to enable mount for any partitions whose UUID was wrong.Ed

This may not be the case, but it should be checked via top before you do a lot of other stuff. It’s called a process of elimination.

Last edited by irlandes; April 2nd, 2011 at 05:49 AM . Reason: left out part of instructions, sorry

Источник

Thread: i cant install anything. VPS UBUNTU SERVER

Thread Tools
Display

i cant install anything. VPS UBUNTU SERVER

hi, i am new to ubuntu, i am connected to my vps through ssh. I am facing a problem and cant install anything on my server. error I am receiving on every installation is

dpkg: unrecoverable fatal error, aborting:
fork failed: Cannot allocate memory
E: Sub-process /usr/bin/dpkg returned an error code (2)

when i run this command «sudo dpkg —configure -a», it starts installing and abort in the middle with the above error (2).

top — 10:36:59 up 2 days, 3:09, 2 users, load average: 0.00, 0.01, 0.05Tasks: 89 total, 1 running, 88 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.3%us, 0.0%sy, 0.0%ni, 99.7%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 244648k total, 215860k used, 28788k free, 2128k buffers
Swap: 0k total, 0k used, 0k free, 43160k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
1867 openvpn_ 20 0 25008 1044 44 S 0.0 0.4 7:48.07 openvpn
1844 root 20 0 264m 39m 1164 S 0.0 16.5 3:05.73 python
1848 openvpn_ 20 0 146m 29m 672 S 0.0 12.3 1:27.46 python
1 root 20 0 24476 1180 136 S 0.0 0.5 1:01.12 init
689 root 20 0 50040 696 92 S 0.0 0.3 0:47.38 sshd
794 root 20 0 231m 7548 1528 S 0.0 3.1 0:39.90 NetworkManager
1857 root 20 0 100m 10m 208 S 0.0 4.2 0:30.13 python
11120 root 20 0 20992 1216 692 S 0.0 0.5 0:29.71 bash
883 whoopsie 20 0 195m 2908 1244 S 0.0 1.2 0:23.50 whoopsie
439 avahi 20 0 32312 968 608 S 0.0 0.4 0:20.00 avahi-daemon
389 syslog 20 0 243m 1072 0 S 0.0 0.4 0:19.23 rsyslogd
1847 root 20 0 129m 18m 264 S 0.0 7.8 0:05.64 python
408 messageb 20 0 24100 1060 500 S 0.0 0.4 0:05.03 dbus-daemon
25 root 20 0 0 0 0 S 0.0 0.0 0:04.88 kswapd0
23 root 20 0 0 0 0 S 0.0 0.0 0:04.34 kworker/0:1
3 root 20 0 0 0 0 S 0.0 0.0 0:03.97 ksoftirqd/0
10 root 20 0 0 0 0 S 0.0 0.0 0:03.56 rcu_sched

total used free shared buffers cachedMem: 238 210 28 0 2 42
-/+ buffers/cache: 166 72
Swap: 0 0 0

Please help me with this.. Thanks

Last edited by saqib4; April 22nd, 2014 at 04:40 PM .

Источник

Name already in use

til / linux / apt_get.md

  • Go to file T
  • Go to line L
  • Copy path
  • Copy permalink

Copy raw contents

Copy raw contents

apt-get package management

to list all packages installed locally.

To update apt-get.

^^ This updates/improves the list of sources from which packages can be selected.

To install a package, for example a package called «unzip».

To check if any packages need to be updated.

(If you leave off the —assume-no then it will prompt you to upgrade, and will default to Y)

To upgrade packages

The capital ‘Y’ means it is the default. So for ‘Yes’ just press enter.

If your machine says something like:

Then you can see which packages need to be upgraded, with:

If you want to upgrade them (hint: you do) then go with:

After performing an upgrade, you may have messages like this:

What is this ‘kept back’ business?

It means that some of the packages were not upgraded, because their dependencies would’ve needed to be upgraded too and this would’ve resulted in NEW packages.

There are (briefly) three commands you can use to release these «kept back» packages:

To update just a single package, and only if it is already installed.

Removing unwanted packages.

You may see a message like this.

Example of the output:

dpkg was interrupted

Sometimes when running

You might receive this message:

. does correct the problem.

dpkg: unrecoverable fatal error

Given this problem I thought I might have to increase the size of the memory.

I found that by rebooting, and re-running the clean up tasks I was attempting I finally succeeded.

First I had to sudo dpkg —configure -a

I haven’t accurately captured all of the sources for this.

© 2023 GitHub, Inc.

You can’t perform that action at this time.

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.

Источник

apt-get install unzip get strange error

i am trying to install unzip and get this error:

# apt-get install unzip Reading package lists… Done Building dependency tree
Reading state information… Done Suggested packages: zip The following packages will be upgraded: unzip 1 upgraded, 0 newly installed, 0 to remove and 54 not upgraded. 1 not fully installed or removed. Need to get 0 B/193 kB of archives. After this operation, 386 kB of additional disk space will be used. (Reading database … dpkg: warning: files list file for package `unzip’ missing, assuming package has no files currently installed. (Reading database … 219960 files and directories currently installed.) Preparing to replace unzip 6.0-4ubuntu2.5 (using …/unzip_6.0-4ubuntu2.5_amd64.deb) … Unpacking replacement unzip … dpkg: unrecoverable fatal error, aborting: fork failed: Cannot allocate memory E: Sub-process /usr/bin/dpkg returned an error code (2)

Please suggest to fix that issue.

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

I would suggest reinstalling package with following command:

This command will completely remove package and install it again, but will not remove packages that depends on it. This is what you need in your current situation.

Popular Topics

Questions

Sign up for Infrastructure as a Newsletter.

Working on improving health and education, reducing inequality, and spurring economic growth? We’d like to help.

You get paid; we donate to tech nonprofits.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow – whether you’re running one virtual machine or ten thousand.

Источник

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

I can bet it’s the SD-card. It was in my story:

I’ve just received my Raspberry Pi from a very and quite delayed Santa… and started to play with it.
1. Applied 2012-12-16-wheezy-raspbian.img to a Kingston 8GB class 6 SDHC card (using an USB card-reader inscribed MICRODIA that claimed to «do» SD/SDHC/MMC/RS-MMC);
2. Booted the Raspberry Pi with that card, USB keyboard, USB mouse and a HDMI TV, with no LAN/WiFi;
3. In «raspi-config» from the first boot I’ve chosen _only_ to expand the filesistem to fill the card, then rebooted (at the config script’s suggestion);
4. I waited for the resize to finish, then «sudo reboot» just to make sure everything is smooth;
5. «sudo raspi-config» to enable SSH and to set the time-zone, then reboot again;
6. «startx» after login just to make sure that X is working, log-off LXDE session, then «sudo shutdown -h now» followed by physical power-off (after more than 20s of green-LED ACT being dark);
7. (re)deployed the Raspberry Pi in «headless mode» (just power and LAN), then connected with SSH to it;
8. ran «sudo apt-get update» smoothly;
9. at «sudo apt-get upgrade», after fetching the packages, got the (disturbing) message

Code: Select all

Extracting templates from packages: 100%
Preconfiguring packages ...
dpkg: unrecoverable fatal error, aborting:
 syntax error: unknown group 'crontab' in statoverride file
E: Sub-process /usr/bin/dpkg returned an error code (2)

After «googleing» various resources and trying the remedies described by a lot of people, I’ve achieved nothing than wasting a whole afternoon…
Just trying to feel smarter, I’ve tried to see what’s the trouble with «crontab» group… then tried to add/modify it… just to find out that there’s an obscure «can’t access the file» kind of an error for what you’ll see below.

Code: Select all

pi@raspberrypi ~ $ sudo su
root@raspberrypi:/home/pi# cd /etc/
root@raspberrypi:/etc# ls -gl
ls: cannot access group: Input/output error
ls: cannot access gshadow: Input/output error
ls: cannot access python3.2: Input/output error
total 824
...
-?????????  ? ?       ?            ? group
-rw-------  1   0   657 Dec 16 19:34 group-
-rw-r--r--  1   0    21 Jan  6 16:55 groups
-?????????  ? ?       ?            ? gshadow
-rw-------  1   0   545 Dec 16 19:34 gshadow-
...
drwxr-xr-x  2   0  4096 Dec 16 19:36 python3
d?????????  ? ?       ?            ? python3.2
drwxr-xr-x  2   0  4096 Dec 16 19:34 rc0.d

Well, those question marks drived me crazy, as chmod _and_ chown were powerless against them… so I’ve decided to try another (smaller) card, a 4GB class 6 SanDisk mini-SD, written with the help of a cheap no-name USB micro-SD reader (reader’s value was less than 2.50 EUR in 2011).
This time, after the first 8 steps (performed under my wife’s critical and cynical eye), the 9th step worked wonderfully (that means «no errors» for the less literary inclined types).
Conclusion: If your Pi shows signs of disk corruption like above (and fsck seems to fix nothing if you dare to try), change the card or/and the reader used. Sometimes a cheap adapter might work a lot better than a fancier one, but _always_ use the best card you can afford, even if that means to sacrifice some space for the quality. It’s worth the price. And use different adapters for that matter, if you have more than one available.
Good luck, and have fun.

Понравилась статья? Поделить с друзьями:
  • Unrecoverable error rangecheck in putdeviceprops
  • Unrecoverable error occurred please reinstall plarium play
  • Unrecoverable error bombing out
  • Unrecoverable build error 0x80004005
  • Unrecoverable bootloader error 0x00000008 asus tf300tg