I cannot download anything or upgrade my system. I get the following error message:  dpkg: file triggers record mentions illegal package name `doc-base/noawait' (for interest in file `/usr/share/doc-base'): character `/' not allowed (only letters, digits and characters `-+._') E: Sub-process /usr/bin/dpkg returned an error code (2)   I also cannot use USB creator to do fresh install as my system fails to load bootloaders.  Please help
122898
I'm doing an upgrade with sudo apt-get upgrade  After I press Enter:  do you want to continue [y/n]? y debconf: apt-extracttemplates failed:No such file or directory extracting templates from package: 100% dpkg:error:parsing file '/var/lib/dpkg/status' near line 1146 package 'python-minimal' 'break' field, invalid package name 'python-de~': Character '~' not allowed (only letters,digits and character '-+._') E:Sub-process /usr/bin/dpkg returned an error code (2)   How to fix or edit this???
81483
When I try to download some software from Ubuntu center or from Synaptic, I get package operation failed...    How to fix this?  edit:  I tried to install this game:    This is the details from the installation:  installArchives() failed: Selecting previously deselected package libbulletml0d2. (Reading database ... 100% (Reading database ... 239257 files and directories currently installed.) Unpacking libbulletml0d2 (from .../libbulletml0d2_0.0.6-4_i386.deb) ... Selecting previously deselected package tumiki-fighters-data. Unpacking tumiki-fighters-data (from .../tumiki-fighters-data_0.2.dfsg1-4_all.deb) ... Selecting previously deselected package tumiki-fighters. Unpacking tumiki-fighters (from .../tumiki-fighters_0.2.dfsg1-4_i386.deb) ... Processing triggers for bamfdaemon ... Rebuilding /usr/share/applications/bamf.index... Processing triggers for desktop-file-utils ... Processing triggers for python-gmenu ... Rebuilding /usr/share/applications/desktop.en_US.UTF8.cache... Processing triggers for menu ... Processing triggers for man-db ... Processing triggers for python-support ... Setting up plymouth-theme-mib-ubuntu (0.5.0-2) ... update-alternatives: error: alternative path /lib/plymouth/themes/MIB-Ubuntu/MIB-Ubuntu.plymouth doesn't exist. dpkg: error processing plymouth-theme-mib-ubuntu (--configure):  subprocess installed post-installation script returned error exit status 2 Setting up libbulletml0d2 (0.0.6-4) ... Setting up tumiki-fighters-data (0.2.dfsg1-4) ... Setting up tumiki-fighters (0.2.dfsg1-4) ... Processing triggers for libc-bin ... ldconfig deferred processing now taking place Processing triggers for menu ... Errors were encountered while processing:  plymouth-theme-mib-ubuntu Setting up plymouth-theme-mib-ubuntu (0.5.0-2) ... update-alternatives: error: alternative path /lib/plymouth/themes/MIB-Ubuntu/MIB-Ubuntu.plymouth doesn't exist. dpkg: error processing plymouth-theme-mib-ubuntu (--configure):  subprocess installed post-installation script returned error exit status 2
82983
when trying to update package listings via apt update or apt-get update I receive the following error:  E: Failed to fetch http://lt.archive.ubuntu.com/ubuntu/dists/xenial/universe/dep11/Components-amd64.yml.gz  Hash Sum mismatch E: Failed to fetch http://lt.archive.ubuntu.com/ubuntu/dists/xenial/universe/dep11/icons-64x64.tar  Writing more data than expected (7468511 &gt; 7467723) [IP: 193.219.61.87 80]   Is this somehow related to localised package distributor or is me all along? I am running beta2 release, that I've successfully installed and updated (without any error prompts) yesterday. Previously I used a 14.04 derivative which also did not bring up any errors. What can be the reason for this error?  EDIT: to duplicate markers, the topic name tackles a different problem rather than the hash sum problem, which is being referenced.
97738
I went to install bsnes the other day and, for whatever reason, the installation failed. Now, I cannot update, install new packages, or do basically any apt-get commands as they all try to process this broken package and fail. Attempting to install a new package also just dooms it to the same fate. The error I get is: Setting up google-chrome-stable (33.0.1750.152-1) ... /var/lib/dpkg/info/google-chrome-stable.postinst: 124: /var/lib/dpkg/info/google-chrome-stable.postinst: update-alternatives: not found dpkg: error processing google-chrome-stable (--configure):  subprocess installed post-installation script returned error exit status 127 Setting up bsnes (0.088-7) ... /var/lib/dpkg/info/bsnes.postinst: 5: /var/lib/dpkg/info/bsnes.postinst: update-alternatives: not found dpkg: error processing bsnes (--configure):  subprocess installed post-installation script returned error exit status 127 Errors were encountered while processing:  google-chrome-stable  bsnes E: Sub-process /usr/bin/dpkg returned an error code (1)  I have been searching on Google and here on Ask Ubuntu but have not found a working solution. The commonly suggested fix is to run the following: sudo apt-get clean &amp;&amp; sudo apt-get autoremove sudo apt-get -f install sudo dpkg --configure -a  This however does not work. The apt-get commands all fail with the same error as above and the dpkg command just doesn't help. The other thing they often suggest to purge it via Synaptic or the command line, which also fails.
111540
I am trying to download and run , I have downloaded Yed-3.14.3_64bit_setup.sh, but I am lost on what to do next.
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.
115323
Every time I try to install ANYTHING with apt-get,i get this error  E: Waited for /usr/sbin/dpkg-preconfigure --apt || true but it wasn't there      E: Failure running script /usr/sbin/dpkg-preconfigure --apt || true    I have looked at many forums but none of them seem to have any answer.  Any help would be much appreciated at this time!       (everything must be done via command line, 13.04 server)   Tried Braiam's command, this was the output + command:  sudo sh -c "echo 'DPkg::Pre-Install-Pkgs {"/usr/sbin/dpkg-pr econfigure --apt || true";};' &gt;&gt; /etc/apt/apt.conf.d/70debconf"                  [sudo] password for swech:                                                       --apt: 1: --apt: Syntax error: Unterminated quoted string                        -bash: true;};' &gt;&gt; /etc/apt/apt.conf.d/70debconf: No such file or directory
2312
I want to downgrade some packages. I search and find  and this  and this .  But i just want to do it with dpkg.  Could i just run dpkg -i package-name? If yes then what will be done with the highest already insatlled version?!
53225
. An update has been issued. If you still cannot install, ensure you have updated fully, and then restart your computer.   I am trying to install downloaded DEB packages. Each time, I see a warning like this:    And clicking install just loads and nothing changes.  This shows for all the packages I try and install. How can I install a package?
27223
Recently, i was installing the new version from 13.04 to 13.10 ubuntu while also watching a video.  Well, guess what happened, my desktop crashed for like 4 minutes and then upon gaining access to the desktop again everything seemed messed up like box symbols where characters should be.  I know it was a bad idea but i decided to reboot halting the installation process and now i am stuck with this error.  dpkg: error processing unity-lens-photos (--configure): package is in a very bad inconsistent state - you should reinstall it before attempting configuration.  Errors were encountered while processing: untity-lens-photos e: subprocess /usr/bin/dpkg returned an error code (1).   And it pretty much pops up everytime i try to upgrade, or install anything.  This was after i finished updating the rest of my files.  I have tried many things and read many threads.  I am really lost right now, please help.  Also i have no access to a panel and i am currently trying everything in the terminal.  Attempts to install a gnome panel have been halted by the error.
43849
Did something expire that should not have? I am using debug symbols on my Ubuntu 20.10 install, and now I get this when I run the apt-get update command. W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://ddebs.ubuntu.com groovy Release: The following signatures were invalid: EXPKEYSIG C8CAB6595FDFF622 Ubuntu Debug Symbol Archive Automatic Signing Key (2016) &lt;ubuntu-archive@lists.ubuntu.com&gt;
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)
88027
I get it after updating in Synaptic Manager  I recently did a clean install of Ubuntu 17.04 from 16.10.  error message:-  W: Download is performed unsandboxed as root as file '/var/cache/apt/archives/partial/samba-libs_2%3a4.5.8+dfsg-0ubuntu0.17.04.1_i386.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
34562
Last night I was updating my Ubuntu 10.04 to either 11.04 or 12.04 (I'm not entirely sure which one it was, but I think it was 11.04) and I left it overnight to finish. When I came down in the morning, I noticed that the computer hadn't barely begun installing the updates! The update thing said that my computer was on the installation step, but it was still preparing the libc bin (or whatever its called) . It's like the first part of the step installing the upgrades. So, I stupidly restarted the computer, and when it rebooted, I got five options on a purple screen:  Ubuntu, with Linux 3.0.0-28-generic Ubuntu, with Linux 3.0.0-28-generic (recovery mode) Previous Linux versions Memory test (memtest86+) Memory test (memtest86+, serial console 115200)   Long story short, not matter which way I enter Ubuntu to try and reinstall the updates using the root thing (it's like terminal) after I enter sudo apt-get update it basically said it failed to fetch every url link, and it then says:  W: Some index files have failed to download. They have been ignored, or old ones used instead. W: Not using locking for read only lock file /var/lib/dpkg/lock E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.   So, I entered sudo dpkg --configure -a, and it says:  dpkg: error: unable to access dpkg status area: Read-only file system"   I'm left like wtf, and I really just some guidance here. I just got this laptop, and I can not afford a new one if I broke this one.
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:~#
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)
24610
I am using 15.04.   So I'm working with git and I installed the standard version. I set up the ssh keys and was able to clone one of my repositories to the correct folder. Everything was working great and then I decided it was a good idea to install more packages. I ran sudo apt-get install git-all. I'm looking at error codes now having to deal with upstart.  start: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused No apport report written because the error message indicates its a followup error from a previous failure. dpkg: error processing package runit (--configure):  subprocess installed post-installation script returned error exit status 1 dpkg: dependency problems prevent configuration of git-daemon-run:  git-daemon-run depends on runit; however:   Package runit is not configured yet.  dpkg: error processing package git-daemon-run (--configure):  dependency problems - leaving unconfigured Errors were encountered while processing:  runit  git-daemon-run E: Sub-process /usr/bin/dpkg returned an error code (1)   This is what happens when I even update/upgrade my system. At this point all I'm looking to do is be able to install software and update my current software. Is there any way I can potentially reverse this issue or at least correct it?   Edit: Thankfully this issue was solved only a day or two after it happened. The accepted answer worked perfectly and took care of my issue