When I install openssh-server with apt-get install on my ubuntu 18.04.2 LTS server an error occures when kpgk processes the package. The server is a cloud machine with 1 VCPU, 2 GB RAM, 20 GB Disk (4 GB still available).  dpkg --print-architecture: amd64  dpkg --print-foreign-architectures: i386  name -a: Linux [computer-name] 4.15.0-45-generic #48-Ubuntu SMP Tue Jan 29 16:28:13 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux  Here is the exact command and full output:  apt-get install: Reading package lists... Done Building dependency tree Reading state information... Done The following packages werde automatically installed and are no longer required:   linux-image-4.15.0-42-generic linux-modules-4.15.0-42-generic Use 'apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded. 1 not fully installed or removed After this operatoin, 0 B of additional disk space will be used. Setting up openssh-server (1:7.6p1-4ubuntu0.3) ... /var/lib/dpgk/info/openssh-server.postinst: 95: /var/lib/dpkg/info/openssh-server.postinst: tempfile: Exec format error dpkg: error processing package openssh-server (--configure):    installed openssh-server package post-installation script subprocess returned error exit status 2 Errors were encountered while processing:    openssh-server E: Sub-process /usr/bin/dpkg returned an error code (1)   The dpkg status of the package is now "install ok half-configured"  Maintainer is Ubuntu Developers   can someone give me a push in the right direction on how to solve this?`  Thanks
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.
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
95
The error I am having when trying to update my package list.  W: GPG error: http://download.opensuse.org ./ Release: The following signatures were invalid: KEYEXPIRED 1436387333  W: Failed to fetch http://ppa.launchpad.net/samrog131/ppa/ubuntu/dists/trusty/main/binary-amd64/Packages  404  Not Found  E: Some index files failed to download. They have been ignored, or old ones used instead.
100260
I typed  sudo apt-get upgrade   And I got this  $ sudo apt-get upgrade Reading package lists... Done Building dependency tree        Reading state information... Done Calculating upgrade... Done The following packages will be upgraded:   bind9-host dnsutils google-chrome-stable libbind9-161 libdns-export1104   libdns1104 libirs161 libisc-export1100 libisc1100 libisccc161 libisccfg163   liblwres161 python3-distupgrade ubuntu-release-upgrader-core   ubuntu-release-upgrader-gtk 15 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/61.1 MB of archives. After this operation, 1,769 kB of additional disk space will be used. Do you want to continue? [Y/n]  dpkg: unrecoverable fatal error, aborting:  unknown system group 'smmsp' in statoverride file; the system group got removed before the override, which is most probably a packaging bug, to recover you can remove the override manually with dpkg-statoverride E: Sub-process /usr/bin/dpkg returned an error code (2)   Can any one throw any light on this?
97302
I have an Ubuntu 10.04 LTS server with a minimal install that I want to compile postgres on. With the minimal install the server did not have gcc so I had to do an apt-get install gcc but now I keep getting this error from the postgres ./configure.  configure: error: readline library not found   I can't seem to find the name of the package that contains the readline library. So I have two questions.   What is the name of the package that contains readline? Is there some way given the error message above for me to find the associated package from its standard name?
66107
linux-image-server depends on linux-image-3.2.0-39-generic; however:   Package linux-image-3.2.0-39-generic is not installed. dpkg: error processing linux-image-server (--configure):   dependency problems - leaving unconfigured No apport report written because the error message indicates its a followup error from a previous failure. dpkg: dependency problems prevent configuration of linux-server: linux-server depends on linux-image-server (= 3.2.0.39.47); however:   Package linux-image-server is not configured yet. linux-server depends on linux-headers-server (= 3.2.0.39.47); however:   Version of linux-headers-server on system is 3.2.0.40.48. dpkg: error processing linux-server (--configure):  dependency problems - leaving unconfigured No apport report written because the error message indicates its a followup error from a previous failure.  Errors were encountered while processing:  linux-image-server linux-server  E: Sub-process /usr/bin/dpkg returned an error code (1)     I don't know how to fix this issue. Plz help me. >&lt;
106916
I need to automatically install a package with its config file already present on the server.  I'm looking for something like:  apt-get install --yes --force-yes --keep-current-confs mysql-server  Probably a dumb question but I can't find such an option.
24888
I have a Red Hat Enterprise Linux server (7.5 x86_64). I have OpenSSH version 7.4. I was asked to upgrade it to a later version for security reasons: Nessus states that . However the Red Hat software and downloads does not have the latest package RPM.  I found some clues on where to get the latest package for OpenSSH. I found , however, I do not know on how to upgrade it and trust this website. I do not want the SSH and other configuration to be modified by the ugrade.  I did find links but however they are not useful, for example .  I would like to know how to upgrade OpenSSH without using yum.
60311
so I've recently installed my first Ubuntu, to be precise, a daily build of 16.04, on my new laptop since the hardware was to new for 15.10. Now I'm in the process of setting it up and I want to install php5 and some extensions.  When I execute sudo apt-get install libapache2-mod-php5 I get the error message that there is no installation package available for php5 and libapache2.  The error message is in german, so I doubt that this would help, but anyways here it is. :-) E: For package »libapache2-mod-php5« existiert kein Installationskandidat.  Do I need to add a apt-get repository? Or what am I doing wrong?
26291
I recently installed Ubuntu Server edition 13.10 (Saucy Salamander). But I have run into a bit of problem. At the end of the installation, it asks about several extra packages whether you want them or not, like OpenSSH server and virtual machine host. Here's what I'm looking at:  Now, my problem is that I can't remember if I have checked the &quot;virtual machine host&quot; checkbox. How do I check if my server has the corresponding packages? What packages come with the virtual machine host?
109481
I'm trying to install/uninstall packages in Debian but getting errors.    I can't remove or add any package, always getting the error.   I tried:  apt-get --remove purge package apg-get remove package dpkg -r package
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.
308
I'm trying to install KDE 5 on my Ubuntu 16.04 system as per the instructions in , but I'm getting the below error message when running sudo apt-get install kubuntu-desktop.  Is there something I can do to resolve this?  Need to get 682 kB/326 MB of archives. After this operation, 1,272 MB of additional disk space will be used. Do you want to continue? [Y/n] y Err:1 http://ir.archive.ubuntu.com/ubuntu xenial/universe amd64              gtk2-engines-oxygen amd64 1.4.6-1ubuntu1   Temporary failure resolving 'ir.archive.ubuntu.com' Get:2 http://ir.archive.ubuntu.com/ubuntu xenial/universe amd64              libkf5sendlater5 amd64 4:15.12.3-0ubuntu1 [45.2 kB] Get:3 http://ir.archive.ubuntu.com/ubuntu xenial/universe amd64              libthreadweaver4 amd64 4:4.14.16-0ubuntu3 [46.6 kB] Get:4 http://ir.archive.ubuntu.com/ubuntu xenial/universe amd64              libfarstream-0.2-5 amd64 0.2.7-0ubuntu1 [192 kB] Fetched 284 kB in 1min 9s (4,093 B/s)         E: Failed to fetch http://ir.archive.ubuntu.com/ubuntu/pool/universe/g/             gtk2-engines-oxygen/gtk2-engines-oxygen_1.4.6-1ubuntu1_amd64.deb               Temporary failure resolving 'ir.archive.ubuntu.com'  E: Unable to fetch some archives, maybe run apt-get update or              try with --fix-missing?
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
102164
I can't say what steps brought me into this:  → sudo apt-get upgrade  Reading package lists... Done Building dependency tree        Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Do you want to continue [Y/n]? y dpkg: error processing libtiff4 (--configure):  libtiff4:i386 3.9.5-1ubuntu1.1 cannot be configured because libtiff4:k386 is in a different version (3.9.5-1ubuntu1) Errors were encountered while processing:  libtiff4 E: Sub-process /usr/bin/dpkg returned an error code (1)   The following commands all end up in the same error:  sudo apt-get install -f sudo dpkg --configure -a sudo apt-get --fix-broken install sudo apt-get --fix-missing install sudo apt-get clean sudo apt-get autoclean sudo apt-get autoremove   How to solve these kind of problems? And what did I do wrong?  UPDATE I managed to get apt working again by downgrading to previous version (3.9.5-1ubuntu1). However, next upgrade led to the same problem. But there is more info now:  (Reading database ...  dpkg: warning: files list file for package `libtiff4:k386' missing, assuming package has no files currently installed. (Reading database ... 281166 files and directories currently installed.) Preparing to replace libtiff4 3.9.5-1ubuntu1 (using .../libtiff4_3.9.5-1ubuntu1.1_i386.deb) ... Unpacking replacement libtiff4 ... dpkg: error processing libtiff4 (--configure):  libtiff4:i386 3.9.5-1ubuntu1.1 cannot be configured because libtiff4:k386 is in a different version (3.9.5-1ubuntu1) No apport report written because MaxReports is reached already                                                               Errors were encountered while processing:  libtiff4   So the real problem seems to be the missing libtiff4:k386 package. And k386 seems like a stupid typo somewhere.  I tracked down the file that introduces the typo:  **/var/lib/dpkg/status**  Package: libtiff4 Status: install ok half-configured Multi-Arch: same Priority: optional Section: libs Installed-Size: 528 Maintainer: Ubuntu Developers &lt;ubuntu-devel-discuss@lists.ubuntu.com&gt; Architecture: k386 Source: tiff Version: 3.9.5-1ubuntu1 Config-Version: 3.9.5-1ubuntu1 Depends: libc6 (&gt;= 2.11), libjpeg62 (&gt;= 6b1), zlib1g (&gt;= 1:1.1.4) Pre-Depends: multiarch-support Description: Tag Image File Format (TIFF) library  libtiff is a library providing support for the Tag Image File Format  (TIFF), a widely used format for storing image data.  This package  includes the shared library. Homepage: http://libtiff.maptools.org Original-Maintainer: Jay Berkenbilt &lt;qjb@debian.org&gt;   Fixing the typo solves the problem.
74419
I'm trying to install folding at home, and running into an issue with FAHControl package  $ sudo dpkg -i fahcontrol_7.5.1-1_all.deb Selecting previously unselected package fahcontrol. (Reading database ... 318495 files and directories currently installed.) Preparing to unpack fahcontrol_7.5.1-1_all.deb ... Unpacking fahcontrol (7.5.1-1) ... dpkg: dependency problems prevent configuration of fahcontrol:  fahcontrol depends on python-gnome2; however:   Package python-gnome2 is not installed.  dpkg: error processing package fahcontrol (--install):  dependency problems - leaving unconfigured Processing triggers for gnome-menus (3.32.0-1ubuntu1) ... Processing triggers for desktop-file-utils (0.24-1ubuntu1) ... Processing triggers for mime-support (3.63ubuntu1) ... Errors were encountered while processing:  fahcontrol   , so what is the best way to proceed?  I see in the  that FAHControl isn't required, but would be nice to get it working.
97307
I keep getting this: Reading package lists... Done Building dependency tree        Reading state information... Done The following packages were automatically installed and are no longer required:   geoip-database-extra gir1.2-ayatanaappindicator3-0.1 gir1.2-gexiv2-0.10   libayatana-appindicator3-1 libayatana-indicator3-7 libjs-openlayers libnl-route-3-200   libqt5multimedia5 libsmi2ldbl libwireshark-data libwireshark10 libwiretap7 libwscodecs1   libwsutil8 python-bs4 python-certifi python-configobj python-html5lib python-httplib2   python-lxml python-olefile python-openssl python-pil python-pycurl python-requests   python-urllib3 python-webencodings wireshark wireshark-common wireshark-qt Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 34 not upgraded. 1 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Setting up install-info (6.5.0.dfsg.1-2) ... /usr/sbin/update-info-dir: 4: /etc/environment: Syntax error: Unterminated quoted string dpkg: error processing package install-info (--configure):  installed install-info package post-installation script subprocess returned error exit status 2 Errors were encountered while processing:  install-info E: Sub-process /usr/bin/dpkg returned an error code (1)  Output of cat /etc/environment: PATH=&quot;/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/java/jre1.8.0_171/bin&quot;     JAVA_HOME=&quot;/usr/java/jre1.8.0_171