When I try to run sudo apt-get upgrade the following error occurs, the system is not working properly, and I am not able to update or install any software. Error: $ sudo apt-get upgrade Reading package lists... Done Building dependency tree        Reading state information... Done Calculating upgrade... Done The following packages have been kept back:   linux-generic-hwe-20.04 linux-headers-generic-hwe-20.04 linux-image-generic-hwe-20.04 The following packages will be upgraded:   alsa-ucm-conf apport apport-gtk code curl gir1.2-freedesktop gir1.2-glib-2.0 gjs gnome-shell   gnome-shell-common libcurl3-gnutls libcurl4 libgirepository-1.0-1 libgjs0g   libnautilus-extension1a linux-libc-dev nautilus nautilus-data openssh-client python3-apport   python3-problem-report python3-update-manager teamviewer update-manager update-manager-core 25 upgraded, 0 newly installed, 0 to remove and 3 not upgraded. Need to get 0 B/82.3 MB of archives. After this operation, 30.7 kB of additional disk space will be used. Do you want to continue? [Y/n] Y  dpkg: unrecoverable fatal error, aborting:  files list file for package 'python3-pygments' is missing final newline E: Sub-process /usr/bin/dpkg returned an error code (2)
121437
I have a problem with dpkg when I try to install any package.  Here is log output:  ➜  LC_MESSAGES=C sudo apt install tree Reading package lists... Done Building dependency tree        Reading state information... Done The following NEW packages will be installed:   tree 0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded. Need to get 0 B/40,6 kB of archives. After this operation, 138 kB of additional disk space will be used. Selecting previously unselected package tree. dpkg: unrecoverable fatal error, aborting:  files list file for package 'libvo-aacenc0:amd64' is missing final newline E: Sub-process /usr/bin/dpkg returned an error code (2) ➜
111555
I ran this command in the Terminal:  sudo apt-get update   Updating ends with the following error report:  W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://extras.ubuntu.com precise Release: The following signatures were invalid: BADSIG 16126D3A3E5C1192 Ubuntu Extras Archive Automatic Signing Key &lt;ftpmaster@ubuntu.com&gt;  W: GPG error: http://ppa.launchpad.net precise Release: The following signatures were invalid: BADSIG 4C1CBC1B69B0E2F4 Launchpad PPA for Jonathan French W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/precise/Release     What does this mean and why is it happening?
114142
I have read every thread I could find -- even the ones that say that the question has been answered elsewhere but none of them address the specific issue I am having.  Update Manager ran and produced errors relating to unmet dependency and  suggested using apt-get install -f which fails with this message:  Unpacking linux-headers-3.5.0-36 (from .../linux-headers-3.5.0-36_3.5.0-36.57~precise1_all.deb) ... dpkg: error processing /var/cache/apt/archives/linux-headers-3.5.0-36_3.5.0-36.57~precise1_all.deb (--unpack):  unable to create `/usr/src/linux-headers-3.5.0-36/arch/arm/mach-iop32x/include/mach/glantank.h.dpkg-new' (while processing `./usr/src/linux-headers-3.5.0-36/arch/arm/mach-iop32x/include/mach/glantank.h'): No space left on device   I suspect that the last 5 words No space left on device are significant but df and du both show adequate space. So I am wondering, what device needs more space?   Ouput from df -h  Filesystem  Size Used Avail Use%  Mounted on /dev/sda1 5.5G 4.4G 786M 86%  / udev 996M 4.0K 996M 1%  /dev tmpfs 402M 880K 401M 1%  /run none 5.0M 0 5.0M 0% /run/lock none 1004M 156K 1004M 1%  /run/shm /dev/sdb1 30G 1.4G 27G 5%  /home /dev/sdc1 299G 31G 268G 11% /media/HD-PCTU2
110868
when i use command sudo apt-get install git it's return below erorrs and it's return for any application to install below :   Setting up util-linux (2.25.2-4ubuntu3) ... update-alternatives: error: cannot stat file '/usr/bin/nodejs': Too many levels of symbolic links dpkg: error processing package util-linux (--configure):  subprocess installed post-installation script returned error exit status 2 Errors were encountered while processing:  util-linux E: Sub-process /usr/bin/dpkg returned an error code (1)   update with sudo apt-get update not working and report below erorr  Fetched 7,032 kB in 5min 32s (21.2 kB/s)                                        W: Failed to fetch http://ppa.launchpad.net/paullo612/unityshell-rotated/ubuntu/dists/vivid/main/binary-amd64/Packages  404  Not Found  W: Failed to fetch http://ppa.launchpad.net/paullo612/unityshell-rotated/ubuntu/dists/vivid/main/binary-i386/Packages  404  Not Found  E: Some index files failed to download. They have been ignored, or old ones used instead.   how can fix it ?
123011
When I run sudo apt-get update on my fully updated Ubuntu 16.04.6 LTS I get the following errors about Google repositories:  $ sudo apt update ... Err:20 http://dl.google.com/linux/earth/deb stable Release.gpg   The following signatures were invalid: KEYEXPIRED 1555048520  KEYEXPIRED 1555048520  KEYEXPIRED 1555048520  KEYEXPIRED 1555048520 Get:21 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB] Err:13 http://dl.google.com/linux/chrome/deb stable Release.gpg    The following signatures were invalid: KEYEXPIRED 1555048520  KEYEXPIRED 1555048520  KEYEXPIRED 1555048520  KEYEXPIRED 1555048520 ... W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://dl.google.com/linux/earth/deb stable Release: The following signatures were invalid: KEYEXPIRED 1555048520  KEYEXPIRED 1555048520  KEYEXPIRED 1555048520  KEYEXPIRED 1555048520 W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://dl.google.com/linux/chrome/deb stable Release: The following signatures were invalid: KEYEXPIRED 1555048520  KEYEXPIRED 1555048520  KEYEXPIRED 1555048520  KEYEXPIRED 1555048520 W: Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/Release.gpg  The following signatures were invalid: KEYEXPIRED 1555048520  KEYEXPIRED 1555048520  KEYEXPIRED 1555048520  KEYEXPIRED 1555048520 W: Failed to fetch http://dl.google.com/linux/earth/deb/dists/stable/Release.gpg  The following signatures were invalid: KEYEXPIRED 1555048520  KEYEXPIRED 1555048520  KEYEXPIRED 1555048520  KEYEXPIRED 1555048520 W: Some index files failed to download. They have been ignored, or old ones used instead.   The apt-key list returns:  pub   1024D/7FAC5991 2007-03-08 uid                  Google, Inc. Linux Package Signing Key &lt;linux-packages-keymaster@google.com&gt; sub   2048g/C07CB649 2007-03-08  pub   4096R/D38B4796 2016-04-12 uid                  Google Inc. (Linux Packages Signing Authority) &lt;linux-packages-keymaster@google.com&gt; sub   4096R/997C215E 2017-01-24 [expires: 2020-01-24]    Removing Google keys and packages with   sudo apt-key del D38B4796 sudo apt-key del 7FAC5991 sudo apt purge google-chrome-stable  sudo apt purge google-earth-pro-stable sudo apt purge google-earth-stable   and reinstalling packages with   cd ~/Downloads wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb sudo apt-get install --reinstall ./google-chrome-stable_current_amd64.deb  wget https://dl.google.com/dl/earth/client/current/google-earth-pro-stable_current_amd64.deb sudo apt-get install --reinstall ./google-earth-pro-stable_current_amd64.deb   does not help.  Executing command from  :  wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -   does not help.  How should I fix it?  What else I did: 1. sent feedback from Google Chrome with Help → Report an Issue. 2. sent feedback from Google Earth using Help → Send feedback. 3. created thread on
103091
When I using try to update using apt-get update, I am getting error as follows,  Err http://ppa.launchpad.net trusty/main amd64 Packages                           404  Not Found Hit http://vn.archive.ubuntu.com trusty-backports/main amd64 Packages           Err http://ppa.launchpad.net trusty/main i386 Packages                            404  Not Found Hit http://vn.archive.ubuntu.com trusty-backports/restricted amd64 Packages     Ign http://ppa.launchpad.net trusty/main Translation-en_US                      Hit http://vn.archive.ubuntu.com trusty-backports/universe amd64 Packages       .......                                         W: Failed to fetch http://ppa.launchpad.net/upubuntu-com/web/ubuntu/dists/trusty/main/binary-amd64/Packages  404  Not Found  W: Failed to fetch http://ppa.launchpad.net/upubuntu-com/web/ubuntu/dists/trusty/main/binary-i386/Packages  404  Not Found  E: Some index files failed to download. They have been ignored, or old ones used instead.   how can to fix this ?
71550
When trying to upgrade using the terminal, my upgrade stops. This is the line showing in the terminal:  The required dependency 'apt(&gt;=1.0.10.2 ubuntu2)' is not installed.   my problem is that I don't know the command to install this dependency. Using other commands, it says apt is up to date. Solutions?
101069
I hope you can help me. I installed Ubuntu 18.04 a few days ago and, while trying to configure it and installing new packaged and software, I think I did something bad. I think it could be related with installing python. Anyway, netiher the gnome-terminal or gnome-tweaks can´t start anymores. Also, when I try to update (sudo apt-get update) it gives me the following error:  sh 1: /usr/lib/cnf-update-db: not found Reading package lists... Done E: Problem executing scripts APT::Update::Post-Invoke-Succes 'if /usr/bin/test -w /var/lib/command-not-found -a -e /usr/lib/cnf-update-db &gt; /dev/null; fi' E: Sub-process returned an error code   I am relativeley new to Linux so I have no clue how can I fix this. Any idea? Even to restore defult configurations/settings?  Thank you very much!
24627
Encountered an error while updating through Synaptic Manager. Subsequent updates gave the error at the bottom of the output. I'm a noob so any help is appreciated.  al@al:~$ sudo apt-get -f upgrade Reading package lists... Done Building dependency tree        Reading state information... Done Correcting dependencies... Done The following NEW packages will be installed:   libjack-jackd2-0:i386 The following packages have been kept back:   linux-headers-generic skype 0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded. Need to get 0 B/202 kB of archives. After this operation, 493 kB of additional disk space will be used. Do you want to continue [Y/n]? y (Reading database ... 310056 files and directories currently installed.) Unpacking libjack-jackd2-0:i386 (from .../libjack-jackd2-0_1.9.8~dfsg.2-1precise1_i386.deb) ... dpkg: error processing /var/cache/apt/archives/libjack-jackd2-0_1.9.8~dfsg.2-1precise1_i386.deb (--unpack):  './usr/share/doc/libjack-jackd2-0/buildinfo.gz' is different from the same file on the system dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) Errors were encountered while processing:  /var/cache/apt/archives/libjack-jackd2-0_1.9.8~dfsg.2-1precise1_i386.deb E: Sub-process /usr/bin/dpkg returned an error code (1)
85364
I'm rather new to Ubuntu and I'm trying to run update-manager on Ubuntu 13.10. I get:  jacopo@jacopo-laptop:~$ update-manager  Traceback (most recent call last):   File "/usr/bin/update-manager", line 28, in &lt;module&gt;     from gi.repository import Gtk   File "/usr/lib/python3/dist-packages/gi/__init__.py", line 27, in &lt;module&gt; from ._gi import _API ImportError: No module named 'gi._gi' Error in sys.excepthook: Traceback (most recent call last):   File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 64, in apport_excepthook     from apport.fileutils import likely_packaged, get_recent_crashes   File "/usr/lib/python3/dist-packages/apport/__init__.py", line 5, in &lt;module&gt;     from apport.report import Report   File "/usr/lib/python3/dist-packages/apport/report.py", line 30, in &lt;module&gt; import apport.fileutils   File "/usr/lib/python3/dist-packages/apport/fileutils.py", line 23, in &lt;module&gt;     from apport.packaging_impl import impl as packaging   File "/usr/lib/python3/dist-packages/apport/packaging_impl.py", line 20, in &lt;module&gt; import apt File "/usr/lib/python3/dist-packages/apt/__init__.py", line 21, in &lt;module&gt; import apt_pkg ImportError: No module named 'apt_pkg'  Original exception was: Traceback (most recent call last): File "/usr/bin/update-manager", line 28, in &lt;module&gt; from gi.repository import Gtk File "/usr/lib/python3/dist-packages/gi/__init__.py", line 27, in &lt;module&gt; from ._gi import _API ImportError: No module named 'gi._gi'   As far as I have understood, this is a problem related to the fact that I should have python3.4 installed. I installed it in /usr/local/lib, but I always get the same error. In this way I can't even upgrade to Ubuntu 14.04.
2675
After installing Ubuntu 12.04 (clean install) I fetch a bunch of program via synaptic (installed specially), all programs worked except Gimp 2.8. So I tried purging Gimp, install again (no luck). Checked broken packages and reinstalled them. When using the Software center I get this MSG:  Failed to fetch http://is.archive.ubuntu.com/ubuntu/pool/main/o/openexr/libopenexr6_1.6.1-4.1_amd64.deb Size mismatch   Tried also this:  sudo apt-get purge gimp* sudo add-apt-repository ppa:otto-kesselgulasch/gimp sudo apt-get update sudo apt-get install gimp   And get this MSG:  Failed to fetch http://is.archive.ubuntu.com/ubuntu/pool/main/o/openexr/libopenexr6_1.6.1-4.1_amd64.deb  Size mismatch E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?   I am wondering if the Icelandic Archive has an outdated version or something?   would really like to install Gimp 2.8 but Gimp 2.6 is OK to.   I am also wondering if I am doing something wrong?
39614
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 &amp;&amp; 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
94397
When I run sudo apt-get upgrade, the dpkg error appears and interupts the process.  Error details:  Setting up python-minimal (2.7.3-0ubuntu7.1) ... Traceback (most recent call last):   File "/usr/local/lib/python2.7/runpy.py", line 162, in _run_module_as_main     "__main__", fname, loader, pkg_name)   File "/usr/local/lib/python2.7/runpy.py", line 72, in _run_code     exec code in run_globals   File "/usr/local/lib/python2.7/compileall.py", line 16, in &lt;module&gt;     import struct   File "/usr/local/lib/python2.7/struct.py", line 1, in &lt;module&gt;     from _struct import * ImportError: No module named _struct dpkg: error processing python-minimal (--configure):  subprocess installed post-installation script returned error exit status 255 dpkg: dependency problems prevent configuration of python:  python depends on python-minimal (= 2.7.3-0ubuntu7.1); however:   Package python-minimal is not configured yet.   And this problem leads to a series of dependency problems when processing the following packages:    python  gwibber-service  libgwibber3  libgwibber-gtk3  gwibber  gwibber-service-facebook  gwibber-service-identica  gwibber-service-twitter  python-all  python-dev  python-all-dev  python-apt  python-problem-report  python-apport  python-libxml2  unity-lens-gwibber  unity-scope-video-remote   Finally, nothing I can do for this problem. And several days later, the root directory is full and I even could not uninstall any software because of this problem.
10743
For the last week or more, running sudo apt-get update culminates in error:  Reading package lists... Done E: Failed to fetch http://au.archive.ubuntu.com/ubuntu/dists/xenial/main/dep11/Components-amd64.yml   Could not open file /var/lib/apt/lists/partial/au.archive.ubuntu.com_ubuntu_dists_xenial_main_dep11_Components-amd64.yml.gz - open (13: Permission denied) [IP: 202.158.214.106 80] E: Failed to fetch http://au.archive.ubuntu.com/ubuntu/dists/xenial-backports/main/dep11/icons-64x64.tar  Could not open file /var/lib/apt/lists/partial/au.archive.ubuntu.com_ubuntu_dists_xenial-backports_main_dep11_icons-64x64.tar.gz - open (13: Permission denied) [IP: 202.158.214.106 80] E: Some index files failed to download. They have been ignored, or old ones used instead.   Entering either of the 2 specified urls into a browser address bar results in a 'File not found' (404) error - but if I append .gz to both addresses, then the respective files can be downloaded.  However, having downloaded the 2 files, I then don't know how (or if) I can utilize them.  Seeking advice on how best to proceed.
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!
118143
After executing this command  sudo apt-get update &amp;&amp; sudo apt-get -y upgrade   I get this error  W: The repository 'http://dl.google.com/linux/chrome/deb stable Release' does not have a Release file. N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use. N: See apt-secure(8) manpage for repository creation and user configuration details.   I've seen past inquiries on same issue but the answers given are specific to other repositories.  Any help will be appreciated.
37441
The Software up-to-date Option automatically download the upgrade for nginx. but While installing it's giving me the following error:  Reading package lists... Done Building dependency tree        Reading state information... Done The following NEW packages will be installed:   nginx 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/434 kB of archives. After this operation, 977 kB of additional disk space will be used. (Reading database ... 291344 files and directories currently installed.) Unpacking nginx (from .../nginx_1.4.7-1~precise_amd64.deb) ... ----------------------------------------------------------------------  Thanks for using nginx!  Please find the official documentation for nginx here: * http://nginx.org/en/docs/  Commercial subscriptions for nginx are available on: * http://nginx.com/products/  ---------------------------------------------------------------------- dpkg: error processing /var/cache/apt/archives/nginx_1.4.7-1~precise_amd64.deb (--unpack):  trying to overwrite '/etc/logrotate.d/nginx', which is also in package nginx-common 1.4.6-1+precise0 dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) Errors were encountered while processing:  /var/cache/apt/archives/nginx_1.4.7-1~precise_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)   Actually that file /etc/logrotate.d/nginx does not exist in this folder.