GNU/Linux Ubuntu 18.04 Manually Recovering Broken System Guide
Hi! The Tutorial shows you Step-by-Step How to Manually Recover Ubuntu 18.04 LTS Broken System.
And this Reparation Workflow is Working also in Case of an Ubuntu 18.04 Apt-get/Dpkg “input/output”, “fatal error” and error (2) Issues!
Finally, this an Ultimate Procedure to try to get Recovered your Ubuntu system from a severe Issue.
1. First Aid Recovering
First, Try Recover Ubuntu Broken System
The Linked Guide shows you How to Check Up your System Before this Manual Reparation!
2. Discovering Broken Packages
So on a Shell session
(Press “Enter” to Execute Commands)
Ctrl+Alt+t on desktopHit Tab to Auto-Complete the Shell Commands…
In this Case, Triple Check the Commands Before Execution!
If Got “User is Not in Sudoers file” then see: How to Enable sudoCollect a List of the Broken Packages with:
sudo apt-get -f install
Find inside the Output and Take Note of All the Packages that are Misbehaving.
3. Copying Packages Status File
So to Make a Copy of the Packages Status File
Just in case you’ll be forced to Restore them…sudo cp /var/lib/dpkg/status /var/lib/dpkg/status.bak
4. Editing Packages Status File
Edit the dpkg “status” File.
sudo gedit /var/lib/dpkg/status
Or:
sudo nano /var/lib/dpkg/status
Remove All Blocks Beginning with Package: [myPackageName] and Ended with a Blank Line
Example:Package: libakonadi-kde4 Status: install ok installed Priority: optional Section: libs Installed-Size: 3047 Maintainer: Kubuntu Developers <kubuntu-devel@lists.ubuntu.com> Architecture: amd64 Source: kdepimlibs Version: 4:4.13.3-0ubuntu0.1 Replaces: kdepimlibs-data, kdepimlibs5 (< 4:4.4.0) Depends: libakonadiprotocolinternals1 (>= 1.11.80), libc6 (>= 2.14), libgcc1 (>= 1:4.1.1), libkdecore5 (>= 4:4.13.3), libkdeui5 (>= 4:4.13.3), libkio5 (>= 4:4.13.3), libqjson0 (>= 0.7.1), libqt4-dbus (>= 4:4.6.1), libqt4-network (>= 4:4.5.3), libqt4-sql (>= 4:4.5.3), libqtcore4 (>= 4:4.8.0), libqtgui4 (>= 4:4.8.0), libsolid4 (>= 4:4.13.3), libstdc++6 (>= 4.6) Breaks: kdepimlibs-data, kdepimlibs5 (< 4:4.4.0) Description: library for using the Akonadi PIM data server This is the client access library for using the Akonadi PIM data server. . This package is part of the KDE Development Platform PIM libraries module. Homepage: http://pim.kde.org/ Original-Maintainer: Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org> </kubuntu-devel@lists.ubuntu.com>
Save the File.
5. Recovering System
Try Again to Repairing System
Running:sudo apt-get -f install
If Still New Broken Packages are Showing Up then Repeat the Former Step.
With a More or Less large dose of Patience your Ubuntu Should be Successfully and Happily Recovered :)6. Restoring System
Only in Case of No Solution then Restore the old “status” File!
Play:sudo cp /var/lib/dpkg/status.bak /var/lib/dpkg/status
7. Repairing Disk
How to Repair Disk on Ubuntu GNU/Linux