I'm new to Ubuntu, and despite all what I could read, I cannot find, or I'm just unable, to fix my problem.   In the upper right corner of the screen I have a "stop" sign, that says:      An error occured. Please run Package Manager from the right-click menu or run apt-get in a     > terminal to see what is wrong. The error message was:   'Unknown error: '&lt;class 'SystemError'&gt;  &gt; (E:Malformed line 57 in source list/etc/apt/sources.list(dist parse))'.   This usually means     > that your installed packages have unmet dependencies"    When I run "Apt-get", here is what I have:   girouxn@girouxn-ThinkPad-X220:~$ apt-get apt 1.0.1ubuntu2 for amd64 compiled on Oct 28 2014 20:55:14 Usage: apt-get [options] command        apt-get [options] install|remove pkg1 [pkg2 ...]        apt-get [options] source pkg1 [pkg2 ...]  apt-get is a simple command line interface for downloading and installing packages. The most frequently used commands are update and install.  Commands:    update - Retrieve new lists of packages    upgrade - Perform an upgrade    install - Install new packages (pkg is libc6 not libc6.deb)    remove - Remove packages    autoremove - Remove automatically all unused packages    purge - Remove packages and config files    source - Download source archives    build-dep - Configure build-dependencies for source packages    dist-upgrade - Distribution upgrade, see apt-get(8)    dselect-upgrade - Follow dselect selections    clean - Erase downloaded archive files    autoclean - Erase old downloaded archive files    check - Verify that there are no broken dependencies    changelog - Download and display the changelog for the given package    download - Download the binary package into the current directory  Options:   -h  This help text.   -q  Loggable output - no progress indicator   -qq No output except for errors   -d  Download only - do NOT install or unpack archives   -s  No-act. Perform ordering simulation   -y  Assume Yes to all queries and do not prompt   -f  Attempt to correct a system with broken dependencies in place   -m  Attempt to continue if archives are unlocatable   -u  Show a list of upgraded packages as well   -b  Build the source package after fetching it   -V  Show verbose version numbers   -c=? Read this configuration file   -o=? Set an arbitrary configuration option, e.g. -o dir::cache=/tmp  See the apt-get(8), sources.list(5) and apt.conf(5) manual  pages for more information and options.                   This APT has Super Cow Powers.  girouxn@girouxn-ThinkPad-X220:~$   On top of this, when I open Ubuntu Software Center, it opens blank for 1 second and closes right away.   Can a good soul please help me understand and fix this issue?   Thank you very much,  Nicolas    Extra info / responses  thanks for the answers. @Steeldriver: here is how my line 57 looks like:  deb http://archive.canonical.com/ partner   What is wrong with it?   @Mikolaj: here is what I get, I think it just confirms my error:  girouxn@girouxn-ThinkPad-X220:~$ sudo apt-get clean [sudo] password for girouxn: girouxn@girouxn-ThinkPad-X220:~$ sudo apt-get -f install Reading package lists... Error! E: Malformed line 57 in source list /etc/apt/sources.list (dist parse) E: The list of sources could not be read. E: The package lists or status file could not be parsed or opened. girouxn@girouxn-ThinkPad-X220:~$ ^C girouxn@girouxn-ThinkPad-X220:~$    Do you guys see something wrong in my line 57?
236
I have unistalled and reinstalled the Ubuntu Software Center as per info I found in a similar thread and I got the same response about line 91 or something like that.  I just tried to upload a screen shot but since I'm new it won't allow me to.  I also can not figure out how to cut and paste anything so I have to hand type what the error screen says, both when I attempt to open the software center and nothing happens, when I try to enter commands into the terminal to uninstall, reinstall, whatever I get the same following:  COULD NOT INTITIALIZE THE PACKAGE INFORMATION An unresolvable problem occured while initializing the package information Please report t:his bug against the 'update-manager' package and include the following error message: 'E: Malformed line 91 in source list/etc/apt/sources.list (dist parse)  E: The list of sources could not be read.,  E: The package list of status file could not be parsed or opened.   How do I report bugs?  What can be done about this.  I have searched and everything everyone says to do leads me back to the same line error message.  So, I don't know how to get to line 91 in the source list; to tell you what it says. Sorry, I'm really new to this. That is what I need is to find out how to get there and fix what it says. I would really like to NOT have to re partition my hard drive and start from scratch, so I'm really looking forward to getting this problem solved. I need to be able to install new software.
72390
An unresolvable problem occurred while calculating the upgrade:   The package 'unity' is marked for removal but it is in the removal blacklist.   This can be caused by:   * Upgrading to a pre-release version of Ubuntu  * Running the current pre-release version of Ubuntu  * Unofficial software packages not provided by Ubuntu   If none of this applies, then please report this bug using the  command 'ubuntu-bug ubuntu-release-upgrader-core' in a terminal.   What shall i do? Do i need to remove untiy from blacklist but how?
49736
I know it has been asked many times before but none of those solutions helped me.  Every time I am running sudo apt upgrade I get this error.  dpkg: error processing package systemd (--configure):  installed systemd package post-installation script subprocess returned error exit status 127 Errors were encountered while processing:  systemd E: Sub-process /usr/bin/dpkg returned an error code (1)   And sudo dpkg --configure -a returns     Setting up udev (237-3ubuntu10.28) ... /var/lib/dpkg/info/udev.postinst: 108: /var/lib/dpkg/info/udev.postinst: addgroup: not found dpkg: error processing package udev (--configure):  installed udev package post-installation script subprocess returned error exit status 127 Setting up systemd (237-3ubuntu10.28) ... /var/lib/dpkg/info/systemd.postinst: 123: /var/lib/dpkg/info/systemd.postinst: addgroup: not found dpkg: error processing package systemd (--configure):  installed systemd package post-installation script subprocess returned error exit status 127 dpkg: dependency problems prevent configuration of libnss-systemd:amd64:  libnss-systemd:amd64 depends on systemd (= 237-3ubuntu10.28); however:   Package systemd is not configured yet.  dpkg: error processing package libnss-systemd:amd64 (--configure):  dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of libpam-systemd:amd64:  libpam-systemd:amd64 depends on systemd (= 237-3ubuntu10.28); however:   Package systemd is not configured yet.  dpkg: error processing package libpam-systemd:amd64 (--configure):  dependency problems - leaving unconfigured Errors were encountered while processing:  udev  systemd  libnss-systemd:amd64  libpam-systemd:amd64   I don't think it's safe to remove systemd package all together. Any help is appreciated and I am on Ubuntu 18.04.
17076
(This question was not resolved. Due to time constraints Computer was restored to factory settings.)  I was attempting to upgrade from 14.04 to 16.04, but apt threw this error:  The required dependency 'apt (&gt;= 1.0.1ubuntu2.13)' is not installed.   What does this mean, and how can I fix it?  When I type in the command apt-cache policy apt  Shageenth@shageenth-Inspiron-3451:~$ apt-cache policy apt apt: Installed: 1.0.1ubuntu2.11 Candidate: 1.0.1ubuntu2.11 Version table: *** 1.0.1ubuntu2.11 0 100 /var/lib/dpkg/status 1.0.1ubuntu2 0 500 http://us.archive.ubuntu.com/ubuntu/ trusty/main amd64  Packages   The error happens when I run the command:   sudo do-release-upgrade -d   and it produces the following:  Checking for a new Ubuntu release Get:1 Upgrade tool signature [198 B] Get:2 Upgrade tool [1,265 kB] Fetched 1,265 kB in 0s (0 B/s) authenticate 'xenial.tar.gz' against 'xenial.tar.gz.gpg' extracting 'xenial.tar.gz'  Reading cache  Checking package manager Reading package lists... Done Building dependency tree Reading state information... Done Building data structures... Done  Required depends is not installed  The required dependency 'apt (&gt;= 1.0.1ubuntu2.13)' is not installed.
1926
Any install that I'm trying through the Software Center is telling me:  Requires installation of untrusted packages: The action would require the installation of packages from not authenticated sources.  I did an apt-get update from the command line, then removed the software sources that the keys were bad from (PPAs I added myself), and unchecked them in the software sources for software center, but to no avail.  I can't install anything from software center anymore - only&gt; from the command line with apt-get. Is uninstalling/installing the only option?  I don't want to break other PPAs that I have. Additional information: Here's a paste from apt-get update: Reading package lists... Done W: GPG error: http://ppa.launchpad.net oneiric Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B725097B3ACC3965 W: GPG error: http://us.archive.ubuntu.com oneiric Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key &lt;ftpmaster@ubuntu.com&gt;  I've tried apt-key update, and there was no effect (two keys unchanged). The output of apt-get update and apt-get upgrade, and the contents of /etc/apt/sources.list, can be found in .
52275
There are many  about Unable to locate package.  For example : if user try to install package by using apt-get then the following error shown. (Here package is used only as example for displaying error message):  sudo apt-get install package Reading package lists... Done Building dependency tree        Reading state information... Done E: Unable to locate package package   What does this error mean? How do I solve it?    provided General solution to understand and how to solve such type of error (which is helpful for new users that may unaware of repository-apt install mechanism)  Note : For resolving unmet-dependencies, visit: .
22607
Accidentally executed this command and now many of my programs are not working.  sudo apt-get --purge remove libstdc++6   sudo apt now not working and some other stuff.  How do I revert this?  Distributor ID: Ubuntu Description:    Ubuntu 16.04.4 LTS Release:        16.04 Codename:       xenial   edit  I followed melebius by installing via dpkg -i ,libstdc++6 and it seems successful   root@server:~# sudo dpkg -i libstdc++6_5.4.0-6ubuntu1~16.04.10_amd64.deb Selecting previously unselected package libstdc++6:amd64. (Reading database ... 71540 files and directories currently installed.) Preparing to unpack libstdc++6_5.4.0-6ubuntu1~16.04.10_amd64.deb ... Unpacking libstdc++6:amd64 (5.4.0-6ubuntu1~16.04.10) ... Setting up libstdc++6:amd64 (5.4.0-6ubuntu1~16.04.10) ... Processing triggers for libc-bin (2.23-0ubuntu10) ...   But when i tried to install something i get this error  root@server:~# sudo apt-get screen apt-get: error while loading shared libraries: liblz4.so.1: cannot open shared object file: No such file or directory root@server:~#
72041
Whenever I use   sudo apt-get upgrade   I am getting these errors:  Reading package lists... Done Building dependency tree        Reading state information... Done Calculating upgrade... Done The following packages will be REMOVED:   linux-image-4.15.0-46-generic 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. 3 not fully installed or removed. After this operation, 8,311 kB disk space will be freed. Do you want to continue? [Y/n] y (Reading database ... 256191 files and directories currently installed.) Removing linux-image-4.15.0-46-generic (4.15.0-46.49) ... /etc/kernel/postrm.d/initramfs-tools: update-initramfs: Deleting /boot/initrd.img-4.15.0-46-generic /etc/kernel/postrm.d/zz-update-grub: Sourcing file `/etc/default/grub' /usr/sbin/grub-mkconfig: 8: /etc/default/grub: 4: not found run-parts: /etc/kernel/postrm.d/zz-update-grub exited with return code 127 dpkg: error processing package linux-image-4.15.0-46-generic (--remove):  installed linux-image-4.15.0-46-generic package post-removal script subprocess returned error exit status 1 Errors were encountered while processing:  linux-image-4.15.0-46-generic E: Sub-process /usr/bin/dpkg returned an error code (1)   Output of cat /etc/default/grub:  # If you change this file, run 'update-grub' afterwards to update # /boot/grub/grub.cfg. # For full documentation of the options in this file, see: #   info -f grub -n 'Simple configuration'  GRUB_DEFAULT=0 GRUB_TIMEOUT_STYLE=hidden GRUB_TIMEOUT= 4 GRUB_DISTRIBUTOR=`lsb_release -i -s 2&gt; /dev/null || echo Debian` GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" GRUB_CMDLINE_LINUX=""  # Uncomment to enable BadRAM filtering, modify to suit your needs # This works with Linux (no patch required) and with any kernel that obtains # the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...) #GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"  # Uncomment to disable graphical terminal (grub-pc only) #GRUB_TERMINAL=console  # The resolution used on graphical terminal # note that you can use only modes which your graphic card supports via VBE # you can see them in real GRUB with the command `vbeinfo' #GRUB_GFXMODE=640x480  # Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux #GRUB_DISABLE_LINUX_UUID=true  # Uncomment to disable generation of recovery mode menu entries #GRUB_DISABLE_RECOVERY="true"  # Uncomment to get a beep at grub start #GRUB_INIT_TUNE="480 440 1"
39495
From time to time, Ubuntu users encounter errors from  or , of the form:  The package some-package needs to be reinstalled, but I can't find an archive for it.  I want to know what causes this error so that I can reproduce it and try to find safe ways of fixing it, even when the broken package is important and has many dependencies.  of the  might give a bit of a clue, but I don't know how packages get the status that causes the error.  How can I produce this error for testing on my (Ubuntu MATE 17.10) system?  This is prompted by  and my long-standing discomfort with closing questions about this error against , whose answer uses dpkg --force-all to remove the offending package.  suggests this solution has worked for many users, but I am not confident that using --force-all won't cause later problems, or that it's a good idea to use this method to remove important packages like APT.
29467
I'm new to Ubuntu, it looks like it is better than Windows. Last day I tried to install Kget (the download manager) but during the process my computer suddenly stopped working. So I had to switch it off. After I logged into Ubuntu again I can't install any program. The Ubuntu Software Center says:  Items cannot be installed or removed until package catalog is repaired. Do you want to repair it now?   After I clicked repair it says (after few seconds):  Package operation fails - The installation or removal of a software package failed   I've tried several times, but the same problem occurred. Can anyone tell me a solution for this problem?
1091
Every once in a while I see users having issues to update due to errors like this:  E:Type 'ain' is not known on line 1 in source list /etc/apt/sources.list.d/some-ppa.list'   with varying types/line numbers/source list files (often after removing a PPA).  How can such an error be fixed?
103373
Apt is seemingly unable to do anything useful for me, repeatedly giving messages of this form:  dpkg: dependency problems prevent configuration of linux-server:  linux-server depends on linux-image-server (= 3.2.0.37.44); however:   Version of linux-image-server on system is 3.2.0.37.45.  linux-server depends on linux-headers-server (= 3.2.0.37.44); however:   Version of linux-headers-server on system is 3.2.0.37.45. dpkg: error processing linux-server (--configure):  dependency problems - leaving unconfigured   This is basically the same problem as  which got closed Duplicate to an answer that is totally useless for this situation.  None of the advice in  helps.    Explicitly:  sudo apt-get clean sudo apt-get autoclean sudo apt-get update   all have no not effect.  While  sudo apt-get -f install sudo dpkg --configure -a sudo apt-get -u dist-upgrade sudo apt-get -o Debug::pkgProblemResolver=yes dist-upgrade   all give some form of the error message above.
7338
After I made a system upgrade (apt-get upgrade) on a debian box, I get an error everytime i tries to use apt-get. Example:  # apt-get -f install Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 8 not upgraded. 1 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Setting up initscripts (2.88dsf-41+deb7u1) ... insserv: Service killprocs has to be enabled to start service single insserv: exiting now! update-rc.d: error: insserv rejected the script header dpkg: error processing initscripts (--configure):  subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing:  initscripts E: Sub-process /usr/bin/dpkg returned an error code (1)   I have tried to find a solution, but can't find anything that looks like this. First of all I have this packet which is "not fully installed or removed". But I can't find the command to locate it. Have tried:  dpkg -l | grep rc   But it list about 20 packets, so there must be a better way to find this packet.  To fix the packet system I have tried normal procedures, like:  apt-get clean &amp;&amp; sudo apt-get autoremove  apt-get -f install dpkg --configure -a   The clean command is good, but the install command will fail with as shown above.  In a desperate try, I tried to reinstall insserv (not sure it's the packet which is broken), but it fails the same way:  # apt-get install --reinstall insserv Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 8 not upgraded. 1 not fully installed or removed. Need to get 63.8 kB of archives. After this operation, 0 B of additional disk space will be used. Get:1 http://ftp.us.debian.org/debian/ wheezy/main insserv armel 1.14.0-5 [63.8 kB] Fetched 63.8 kB in 0s (85.5 kB/s) Setting up initscripts (2.88dsf-41+deb7u1) ... insserv: Service killprocs has to be enabled to start service single insserv: exiting now! update-rc.d: error: insserv rejected the script header dpkg: error processing initscripts (--configure):  subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing:  initscripts E: Sub-process /usr/bin/dpkg returned an error code (1)
44441
I accidently removed apt-get from my Debian system by issuing:  dpkg --force-depends --purge apt   How can I reinstall it?
3727
When I try to install any package through the command line, I get an error.   $ sudo apt-get install &lt;package&gt; Reading package lists... Done Building dependency tree        Reading state information... Done E: Unable to locate package &lt;package&gt;   Can anyone help me on this?
33767
I tried sudo apt-get update in the new Windows Subsystem for Linux, but I get the following error:    The most relevant parts seem to be the "could not resolve" lines about Ubuntu servers, like:  Could not resolve 'archive.ubuntu.com'
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!