I'm currently running 20.04, which I updated recently from 19.10. Last night I did an update through Software Updater and it offered to do a partial update, which I rashly (and regretfully) agreed to. Now I'm not sure what the repercussions are of if I need to recover from it. Here is what the dialog looks like:  I've run apt update/upgrade/clean/apt-get install -f/autoremove/--fix-missing-update/dpgk configure -a/etc. Each of these commands doesn't do anything special and doesn't indicate that anything was broken or even that it fixed anything. After searching the logs, I finally found /var/log/dpkg.log that indicated it removed and upgraded a tons of packages, many of which I don't really know or care about like fwupd-signed and initramfs-tools. Here is the start of the log output: 2020-06-15 22:05:27 startup packages remove 2020-06-15 22:05:27 status installed fwupd-signed:amd64 1.27+1.3.9-4 2020-06-15 22:05:27 remove fwupd-signed:amd64 1.27+1.3.9-4 &lt;none&gt; 2020-06-15 22:05:27 status half-configured fwupd-signed:amd64 1.27+1.3.9-4 2020-06-15 22:05:27 status half-installed fwupd-signed:amd64 1.27+1.3.9-4 2020-06-15 22:05:27 status config-files fwupd-signed:amd64 1.27+1.3.9-4 2020-06-15 22:05:27 status not-installed fwupd-signed:amd64 &lt;none&gt; 2020-06-15 22:05:27 startup archives unpack  And the end: 2020-06-15 22:06:52 status not-installed postfix:amd64 &lt;none&gt; 2020-06-15 22:06:52 startup packages configure 2020-06-15 22:06:52 trigproc ufw:all 0.36-6 &lt;none&gt; 2020-06-15 22:06:52 status half-configured ufw:all 0.36-6 2020-06-15 22:06:52 status installed ufw:all 0.36-6 2020-06-15 22:06:52 trigproc systemd:amd64 245.4-4ubuntu3.1 &lt;none&gt; 2020-06-15 22:06:52 status half-configured systemd:amd64 245.4-4ubuntu3.1 2020-06-15 22:06:52 status installed systemd:amd64 245.4-4ubuntu3.1 2020-06-15 22:06:52 trigproc rsyslog:amd64 8.2001.0-1ubuntu1 &lt;none&gt; 2020-06-15 22:06:52 status half-configured rsyslog:amd64 8.2001.0-1ubuntu1 2020-06-15 22:06:53 status installed rsyslog:amd64 8.2001.0-1ubuntu1 2020-06-15 22:08:09 startup packages configure 2020-06-15 22:08:13 startup packages configure  So what I don't understand is whether I actually have a problem with my system or if the partial update was benign. There seems to be no definitive way for me to check, at least none that I can DuckDuckGo for. What other sanity checks do you recommend I run?
121158
What's wrong now with fwupd? It was OK since May 1st, 2020 on newly installed Ubuntu 20.04 The following packages have been kept back:    fwupd  0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
55673
Earlier, I had a problem with a package, and I (wrongly) ran this:  rm -r /var/lib/dpkg/*   See also .  Now when I try to upgrade, I get this:  E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it? masoud@masoud-PC:~$ sudo apt-get upgrade  E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?   and when I use: sudo dpkg --configure -a   I get this:  dpkg: error: cannot scan updates directory `/var/lib/dpkg/updates/': No such file or directory     and for sudo apt-get upgrade -f get:  Reading package lists... Done Building dependency tree        Reading state information... Done Correcting dependencies... failed. The following packages have unmet dependencies:  ia32-libs : Depends: ia32-libs-multiarch but it is not installable  wine1.4 : Depends: wine1.4-i386 (= 1.4.1-0ubuntu5) but it is not installable E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages. E: Unable to correct dependencies
78346
I have deleted some files around /var/lib/dpkg/, namely:  /var/lib/dpkg/status /var/lib/dpkg/available /var/lib/dpkg/info/*   I understand Debian uses these files to keep some information about installed packages. Now when I do apt-get update, I get following error:  Reading package lists... Error! E: Could not open file /var/lib/dpkg/status - open  (2: No such file or directory) E: The package lists or status file could not be parsed or opened.   As I understand the , files located in /var are not supposed to be system-critical. Rater these should be temporary files, logs, caches, and similar.   Is there therefore a way to recreate the deleted files ?
1194
I accidentally removed all the packages starting with the name jpeg with:  sudo apt-get remove jpeg*   This screwed up a lot of things, removed Unity, Firefox, Flash player etc.  I somehow managed to recover the desktop and unity but then a lot of things are still buggy. For example .rpm files and .tag.gz just won't open up at all.  What I want is a way to fix everything that's amiss. Something that is the equivalent of a 'repair installation' with a windows disc.  Any tips, anyone?
80237
I'm using 17.04 ( Clean Install ), and as far as I remember, every try to install any sofware- it fails with that error code.  I tried sudo apt-get update &amp;&amp; apt-get upgrade and problem persists.  any idea why?   edit: Using software Updater gave this result :   edit : output of update  guy@LG-LAPTOP:~$ sudo apt-get update &amp;&amp; apt-get upgrade [sudo] password for guy:  Ign:1 http://il.archive.ubuntu.com/ubuntu zesty InRelease Ign:2 http://il.archive.ubuntu.com/ubuntu zesty-updates InRelease               Ign:3 http://il.archive.ubuntu.com/ubuntu zesty-backports InRelease             Err:4 http://il.archive.ubuntu.com/ubuntu zesty Release                           503  Service Unavailable Get:5 http://security.ubuntu.com/ubuntu zesty-security InRelease [89.2 kB]      Err:6 http://il.archive.ubuntu.com/ubuntu zesty-updates Release                   503  Service Unavailable Get:7 http://archive.canonical.com/ubuntu zesty InRelease [10.2 kB]             Err:8 http://il.archive.ubuntu.com/ubuntu zesty-backports Release                 503  Service Unavailable Get:9 http://archive.canonical.com/ubuntu zesty/partner Sources [1,416 B]       Get:10 http://archive.canonical.com/ubuntu zesty/partner amd64 Packages [1,616 B] Get:11 http://archive.canonical.com/ubuntu zesty/partner i386 Packages [1,612 B] Get:12 http://archive.canonical.com/ubuntu zesty/partner Translation-en [708 B] Get:13 http://security.ubuntu.com/ubuntu zesty-security/main amd64 DEP-11 Metadata [11.7 kB] Get:14 http://security.ubuntu.com/ubuntu zesty-security/main DEP-11 64x64 Icons [9,219 B] Get:15 http://security.ubuntu.com/ubuntu zesty-security/universe amd64 DEP-11 Metadata [14.4 kB] Get:16 http://security.ubuntu.com/ubuntu zesty-security/universe DEP-11 64x64 Icons [31.0 kB] Reading package lists... Done                                          E: The repository 'http://il.archive.ubuntu.com/ubuntu zesty Release' does no longer have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. E: The repository 'http://il.archive.ubuntu.com/ubuntu zesty-updates Release' does no longer have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. E: The repository 'http://il.archive.ubuntu.com/ubuntu zesty-backports Release' does no longer have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. guy@LG-LAPTOP:~$    output of apt get  guy@LG-LAPTOP:~$ sudo apt-get install putty Reading package lists... Done Building dependency tree        Reading state information... Done The following additional packages will be installed:   putty-tools Suggested packages:   putty-doc The following NEW packages will be installed:   putty putty-tools 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 661 kB of archives. After this operation, 2,713 kB of additional disk space will be used. Do you want to continue? [Y/n]  Err:1 http://il.archive.ubuntu.com/ubuntu zesty/universe amd64 putty-tools amd64 0.67-3   503  Service Unavailable Err:2 http://il.archive.ubuntu.com/ubuntu zesty/universe amd64 putty amd64 0.67-3   503  Service Unavailable E: Failed to fetch http://il.archive.ubuntu.com/ubuntu/pool/universe/p/putty/putty-tools_0.67-3_amd64.deb  503  Service Unavailable E: Failed to fetch http://il.archive.ubuntu.com/ubuntu/pool/universe/p/putty/putty_0.67-3_amd64.deb  503  Service Unavailable E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? guy@LG-LAPTOP:~$
34343
When trying to update I get an error message   E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.    But when I try to run this command the screen goes completely black and nothing happens.  From what I can tell it is trying to install Linux headers when this happens.  This is a fresh install of less than a week old. At this time I can not install anything new or update anything. How do I solve this issue?  Log File:  12:50:16 systemd-journal: Journal stopped 12:50:16 kernel: Sending SIGTERM to remaining processes... 12:50:16 kernel: Syncing filesystems and block devices. 12:50:16 kernel: printk: systemd-shutdow: 78 output lines suppressed due to ratelimiting 12:50:16 systemd: Shutting down. 12:50:15 NetworkManager: &lt;info&gt;  [1565373015.4510] exiting (success) 12:50:15 systemd: Stopped Raise network interfaces. 12:50:15 NetworkManager: &lt;info&gt;  [1565373015.4124] caught SIGTERM, shutting down normally. 12:50:15 systemd: Stopping Network Manager... 12:50:15 pulseaudio: E: [alsa-sink-HDMI 1] alsa-sink.c: Error opening PCM device hdmi:0,1: No such file or directory 12:50:15 systemd: Stopped D-Bus User Message Bus. 12:50:15 systemd-logind: Removed session 2. 12:50:15 systemd: Stopping D-Bus User Message Bus... 12:50:15 gdm-x-session: (II) Server terminated successfully (0). Closing log file. 12:50:14 systemd: Stopped ACPI event daemon. 12:50:14 (sd-pam): pam_unix(systemd-user:session): session closed for user gdm 12:50:14 systemd: gdm.service: Succeeded. 12:50:14 gdm3: Child process -1517 was already dead. 12:50:14 systemd: Started Exit the Session. 12:50:14 gdm3: Child process -1517 was already dead. 12:50:14 systemd: systemd-exit.service: Succeeded. 12:50:14 gdm-x-session: (II) systemd-logind: releasing fd for 13:65 12:50:14 systemd: Stopped sandboxed app permission store. 12:50:14 systemd-logind: Removed session c2. 12:50:14 gdm-x-session: (II) systemd-logind: releasing fd for 13:64 12:50:14 systemd: Stopping User Manager for UID 123... 12:50:14 gdm-x-session: (II) Server terminated successfully (0). Closing log file. 12:50:13 gdm3: Freeing conversation 'gdm-launch-environment' with active job 12:50:13 systemd: Stopped Network Manager Wait Online. 12:50:13 dbus-daemon: [system] Activation via systemd failed for unit 'accounts-daemon.service': Refusing activation, D-Bus is shutting down. 12:50:13 systemd: Stopped target Network is Online. 12:50:13 gdm3: Tried to look up non-existent conversation gdm-launch-environment 12:50:13 gdm-x-session: (II) systemd-logind: releasing fd for 13:68 12:50:13 avahi-daemon: avahi-daemon 0.7 exiting. 12:50:13 dbus-daemon: [system] Activating via systemd: service name='org.freedesktop.Accounts' unit='accounts-daemon.service' requested by ':1.478' (uid=0 pid=3680 comm="gdm-session-worker [pam/gdm-launch-environment] " label="unconfined") 12:50:13 systemd: Stopped CUPS Scheduler. 12:50:13 gdm3: Failed to list cached users: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name :1.7 was not provided by any .service files 12:50:13 systemd: Stopped PackageKit Daemon. 12:50:13 udisksd: udisks daemon version 2.8.2 exiting 12:50:13 systemd: Stopped Accounts Service. 12:50:13 apport:    ...done. 12:50:13 systemd: Stopped LSB: Record successful boot for GRUB. 12:50:13 dbus-daemon: [session uid=1000 pid=3647] AppArmor D-Bus mediation is enabled 12:50:13 systemd: Stopping Authorization Manager... 12:50:13 avahi-daemon: Leaving mDNS multicast group on interface lo.IPv4 with address 127.0.0.1. 12:50:13 systemd: Stopped target Host and Network Name Lookups. 12:50:13 avahi-daemon: Leaving mDNS multicast group on interface enp7s0.IPv4 with address 192.58.0.150. 12:50:13 systemd-logind: Session c2 logged out. Waiting for processes to exit. 12:50:13 systemd: Stopping CUPS Scheduler... 12:50:13 avahi-daemon: Leaving mDNS multicast group on interface enp7s0.IPv6 with address fe80::fd7:6a47:d5ba:6c3c. 12:50:13 systemd-logind: Session 2 logged out. Waiting for processes to exit.
43454
When I run sudo apt update in Ubuntu 18.10 I get this error message:  E: flAbsPath on /var/lib/dpkg/status failed - realpath (2: No such file or directory) E: Could not open file  - open (2: No such file or directory) E: Problem opening  E: The package lists or status file could not be parsed or opened.   After running sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status it's showing this error message:   cp: cannot stat '/var/lib/dpkg/status-old': No such file or directory
77751
I began the ubuntu upgrade before leaving for work and returned to something broken.  After some efforts to get more information to fix this problem I've done the following:  &gt;sudo apt-get dist-upgrade 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:  ia32-libs : Depends: ia32-libs-multiarch but it is not installable  libc6-dbg : Depends: libc6 (= 2.19-0ubuntu6.6) but 2.19-10ubuntu2.3 is installed  libpcre3-dev : Depends: libpcre3 (= 1:8.31-2ubuntu2) but 1:8.35-3ubuntu1 is installed  skype : Depends: skype-bin but it is not installable E: Unmet dependencies. Try using -f.   So try -f...  &gt;sudo apt-get -f install Reading package lists... Done Building dependency tree        Reading state information... Done Correcting dependencies... Done The following extra packages will be installed:   libc6-dbg libpcre3-dev libpcrecpp0 The following packages will be REMOVED:  ia32-libs skype The following packages will be upgraded:   libc6-dbg libpcre3-dev libpcrecpp0 3 upgraded, 0 newly installed, 2 to remove and 1649 not upgraded. 160 not fully installed or removed. Need to get 0 B/3,799 kB of archives. After this operation, 242 kB of additional disk space will be used. Do you want to continue? [Y/n] y E: Sub-process /usr/bin/dpkg returned an error code (2)   Check dpkg...  &gt;sudo dpkg dpkg: error: configuration error: /etc/dpkg/dpkg.cfg.d/multiarch:1: unknown option 'foreign-architecture'   Can someone advise please?
1521
I was running an upgrade with the apt-get command, and it was taking an exceptionally long time because half way through my ISP hit me in the face with their fair usage policy.   After sitting outside &amp; watching the rain for awhile my electronics regained consciousness, so I went back to complete the upgrade and my terminal scolds me with   "E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem."   The last bit of legible info was all this:  Installing (ri/RDoc) documention for (stuff and such) ERROR:  Could not find a valid gem 'watobo-0.9.8.724.gem' (&gt;= 0) in any repository rm: cannot remove `watobo-0.9.8.724.gem': No such file or directory  Setting up metasploit (4.3.0-bt1) ... Upgrading Pre-Existing Installation... /opt/metasploit/postgresql/scripts/ctl.sh : postgresql  (pid 1191) already running prosvc is running metasploit is running [*] [*] Attempting to update the Metasploit Framework... [*]   So on it goes for miles, talking about gem caches, rubies, &amp; stuff I wish I had. All up until:  A    lib/gemcache/ruby/1.9.1/gems/state_machine-1.1.2/gemfiles/active_record-2.1.2.gemfile.lock   ...and there it has sat, all night.    If I stop it, will I still get the dpkg error (on the off chance that I won't), or if so what do I need to to resume using apt-get commands and its Super Cow Powers?
45730
I have 4 servers with Debian Wheezy OS. I have Apticron installed that informs me about updates. Debian updates are realized so often that when I finish to update the last of 4 servers I get new email about new updates on the first server. I try to update all servers when I get a notification but I never know if there is a need to reboot the servers. I have read that if the directory "/var/run" contains file "reboot-required" I have to reboot the server. But I never have seen this file in "/var/run". How can I know when reboot is required? I don't want reboot my servers every time when I install new updates if it's not needed.  I understand that if I update PHP or MySQL, etc I don't need to reboot the server but updates usually contain many "lib...".  Below are 9 updates (I have received this week).  krb5-locales 1.10.1+dfsg-5+deb7u3 libdbus-1-3 1.6.8-1+deb7u6 libgssapi-krb5-2 1.10.1+dfsg-5+deb7u3 libk5crypto3 1.10.1+dfsg-5+deb7u3 libkrb5-3 1.10.1+dfsg-5+deb7u3 libkrb5support0 1.10.1+dfsg-5+deb7u3 libruby1.8 1.8.7.358-7.1+deb7u2 libxml2 2.8.0+dfsg1-7+wheezy3 ruby1.8 1.8.7.358-7.1+deb7u2   I have no idea what is "libkrb,libgssapi", etc. How can I detect if reboot is needed? Please do not suggest to install UnattendedUpgrades to let the servers update automatically because this can cause websites going offline if something updates not correct.
105399
Every time I try to install or remove a package, I get this error. I thought maybe it was the hard disk, but a disk check gave me a clean bill of health. dpkg: unrecoverable fatal error, aborting: reading files list for package 'linux-headers-3.16.0-31': Input/output error E: Sub-process /usr/bin/dpkg returned an error code (2) A package failed to install.  Trying to recover:  I tried the solution of removing the listing for this file from the dpkg status file, but to no avail. I tried purging the package but no use. I'm stuck at this point as nothing I can find on Google helps. Update: This is now what the error says: dpkg: unrecoverable fatal error, aborting: E: Sub-process /usr/bin/dpkg returned an error code (2) A package failed to install.  Trying to recover:  After trying:  Update2: Seems the drive has bad sectors, but the reallocated sector count is 0. The drive is relatively old, however, so I expect some issues. I won't be able to replace it immediately, and until then I would still like to be able to keep the system up to date (especially for security reasons). I noted that there was an issue with coping some md5 checksums related to the package mentioned in the error, but I don't know what to do with those, such as if clearing them would allow dpkg to continue.
44441
I accidently removed apt-get from my Debian system by issuing:  dpkg --force-depends --purge apt   How can I reinstall it?
86001
I got the following output every time I run apt-get update on my Debian 8.   Is there a way to fix this?   Err http://ppa.launchpad.net jessie/main amd64 Packages                         404  Not Found Ign http://ppa.launchpad.net jessie/main Translation-en                 Err http://ppa.launchpad.net jessie/main amd64 Packages                   404  Not Found Ign http://ppa.launchpad.net jessie/main Translation-en                 Fetched 164 kB in 3s (47.0 kB/s)                                        W: Failed to fetch http://ppa.launchpad.net/certbot/certbot/ubuntu/dists/jessie/main/binary-amd64/Packages  404  Not Found  W: Failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/dists/jessie/main/binary-amd64/Packages  404  Not Found  E: Some index files failed to download. They have been ignored, or old ones used instead.   And this is what I have in /etc/apt/sources.list  deb http://ftp.debian.org/debian/ jessie main deb-src http://ftp.debian.org/debian/ jessie main  deb http://security.debian.org/ jessie/updates main deb-src http://security.debian.org/ jessie/updates main  # jessie-updates, previously known as 'volatile' deb http://ftp.debian.org/debian/ jessie-updates main deb-src http://ftp.debian.org/debian/ jessie-updates main  deb http://ftp.debian.org/debian jessie-backports main   And this is the output of cat /etc/apt/sources.list.d/*  deb http://ppa.launchpad.net/certbot/certbot/ubuntu jessie main # deb-src http://ppa.launchpad.net/certbot/certbot/ubuntu jessie main deb http://ppa.launchpad.net/ondrej/php/ubuntu jessie main # deb-src http://ppa.launchpad.net/ondrej/php/ubuntu jessie main deb http://ppa.launchpad.net/ondrej/php/ubuntu jessie main # deb-src http://ppa.launchpad.net/ondrej/php/ubuntu jessie main deb https://packages.sury.org/php/ jessie main deb https://packages.sury.org/php/ jessie main
26534
While upgrading to 14.04 using sudo do-release-upgrade my network connection was interrupted and several packages failed to upgrade.  Running do-release-upgrade again reported No new releases found but apt-get listed many packages "kept back", so it seemed the system was in an intermediate state. I ran apt-get dist-upgrade which installed those packages again, then apt-get autoremove after which apt seemed happy.  However, after restarting I cannot log in at the GUI prompt. After entering my password the error "Failed to start session" appears in red. I am still able to log in from the command prompt, but I don't know what to do to solve or debug the GUI log in failure.
36265
so i use computer for unknown time. sometimes i use it for more than 3 hr. and sometimes lesss than half hour. what will happen if i will stop the update from the terminal when the packages are being  Q1- Downloaded? Q2- Installed?
42051
I was trying to update my packages today:  $ sudo apt-get upgrade 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-headers-3.16.0-44-generic : Depends: linux-headers-3.16.0-44 but it is not installed E: Unmet dependencies. Try using -f.   So, I went ahead and tried apt-get -f install:  $ sudo apt-get -f install Reading package lists... Done Building dependency tree        Reading state information... Done Correcting dependencies... Done The following extra packages will be installed:   linux-headers-3.16.0-44 The following NEW packages will be installed:   linux-headers-3.16.0-44 0 upgraded, 1 newly installed, 0 to remove and 3 not upgraded. 3 not fully installed or removed. Need to get 0 B/9,101 kB of archives. After this operation, 64.5 MB of additional disk space will be used. Do you want to continue? [Y/n] y (Reading database ... 688666 files and directories currently installed.) Preparing to unpack .../linux-headers-3.16.0-44_3.16.0-44.59_all.deb ... Unpacking linux-headers-3.16.0-44 (3.16.0-44.59) ... dpkg: error processing archive /var/cache/apt/archives/linux-headers-3.16.0-44_3.16.0-44.59_all.deb (--unpack):  unable to create `/usr/src/linux-headers-3.16.0-44/scripts/genksyms/Makefile.dpkg-new' (while processing `./usr/src/linux-headers-3.16.0-44/scripts/genksyms/Makefile'): No space left on device dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) Errors were encountered while processing:  /var/cache/apt/archives/linux-headers-3.16.0-44_3.16.0-44.59_all.deb E: Sub-process /usr/bin/dpkg returned an error code (1)   It's complaining saying No space left on device. df -Th tells me that there's sufficient space:  $ df -h Filesystem      Size  Used Avail Use% Mounted on /dev/sda6       3.3G  2.5G  571M  82% / udev            2.0G     0  2.0G   0% /dev tmpfs           395M   11M  384M   3% /run tmpfs           2.0G   28M  1.9G   2% /dev/shm tmpfs           2.0G     0  2.0G   0% /sys/fs/cgroup tmpfs           100M   72K  100M   1% /run/user tmpfs           5.0M  8.0K  5.0M   1% /run/lock /dev/sda7       9.3G  7.6G  1.3G  87% /usr /dev/sda8       188G  176G  3.0G  99% /home /dev/sda1       945M  394M  487M  45% /boot /dev/sda9       256G  9.6G  233G   4% /var   However, df -i tells me /usr has used up all the inodes.  These are the dirs and their inode usage:  /usr/bin = 2846 /usr/etc = 1 /usr/games = 8 /usr/include = 3204 /usr/lib = 42317 /usr/local = 105 /usr/lost+found = 1 /usr/sbin = 306 /usr/share = 228141 /usr/src = 348704   So, if I can clear out /usr/src (which contains the current and old kernels), I can probably resolve the issue. But, I keep running into the first error:  $ sudo apt-get purge linux-image-3.8.0-35-generic  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-headers-3.16.0-44-generic : Depends: linux-headers-3.16.0-44 but it is not going to be installed  linux-image-extra-3.8.0-35-generic : Depends: linux-image-3.8.0-35-generic but it is not going to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).   Any suggestions on how I can remove my old kernels? Thanks!
76190
What happened  I was working on my laptop while it upgraded from 15.10 to 16.04 (which I admit was a mistake) when suddenly the Unity overlay disappeared and the only thing on screen was the Firefox browser window. I switched to a new terminal, logged in and tried to run sudo service lightdm restart but instead of restarting correctly, the screen started turning on and off repeatedly, which freaked me out, so I physically turned off the PC.  Long story short: I forced a shutdown halfway through the Ubuntu upgrade.  Ever since, any attempts of logging in normally have been met with a solid black screen and the idle whirring of the CPU fan.  What I have tried  I have tried the recovery mode boot up, but no luck (The log does greet "Welcome to Ubuntu 16.04 LTS!"). I tried out each option that seemed useful:   dpkg goes through the packages as advertised, but strangely enough it always locks up on some Braille package until I do Ctrl+C, at which moment it spouts some error messages and then I think throws me into the normal boot. failsafeX results in a similar situation to the normal boot: a black void. fsck says the single partition I have is a-ok. grub seems to get a bunch of stuff. Don't know if it searches locally or fetches from the internet. network didn't work I think.   I tried following  but couldn't do the sudo part because the filesystem was mounted as readonly. So I ran fsck which mounts as RW and tried again.   This time, after running apt-get autoremove it went through many packages (Setting up foobar (X.Y.ZubuntuN) ...), sometimes installing packages, which I assume is the usual behavior. One thing to note though is it kept getting stuck several times, so I had to Ctrl+C it out of processing the current package. It finally ended on "Processing was halted because there were too many errors.".  While  seems to mention some of the graphics problems I've been experiencing... I have Intel HD Graphics, not Nvidia. I'll keep looking into it.