When I am trying to install the git-all from the repositories sudo apt-get install git-all at the end of the installation process I get some errors:      start: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused 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   It seems that the runit package is not configured yet, the system is a fresh Ubuntu 16.04 install. Does anyone know how I should configured it?
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
98438
On Ubuntu 18.04.2 LTS, I completely removed/uninstalled my apt-get because of problems I was having.  I tried re-installing it with dpkg by runnung:   $ sudo wget http://archive.ubuntu.com/ubuntu/pool/main/a/apt/apt-transport-https_1.0.1ubuntu2.23_amd64.deb   to install apt-transport-https then it's dependency:  $ sudo wget http://archive.ubuntu.com/ubuntu/pool/main/a/apt/libapt-pkg4.12_1.0.1ubuntu2_amd64.deb   then I ran the two following commands  $ sudo dpkg -i libapt-pkg4.12_1.0.1ubuntu2_amd64.deb $ sudo dpkg -i apt-transport-https_1.0.1ubuntu2.23_amd64.deb   but when I try run apt or apt-get I still get the error     command not found   I'm still pretty new to ubuntu and I'm not sure what to do
98685
I followed the steps listed at  and did the following:  Installed Python  Installed PostgreSQL ssudo sh -c 'echo &quot;deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main&quot; &gt; /etc/apt/sources.list.d/pgdg.list' wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - sudo apt-get -y install postgresql   Installed Miniconda and created a conda datacube environment conda config --add channels conda-forge conda create --name cubeenv python=3.6 datacube source activate cubeenv  datacube system check     Gives me an error stating  psql: error: could not connect to server: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket &quot;/tmp/.s.PGSQL.5432&quot;?  Problem is that PostgreSQL is accessible outside the environment but not getting connected once the environment is activated. A screenshot of the same is attached.
114776
Initially I installed Python 3.3 from source, but then I removed and deleted the directory /usr/lib/python3.3.   When I am installing it using aptitude, I am getting this error.  Unpacking python3.3 (from .../python3.3_3.3.1-1ubuntu5_i386.deb) ... Processing triggers for man-db ... Processing triggers for bamfdaemon ... Rebuilding /usr/share/applications/bamf-2.index... Processing triggers for desktop-file-utils ... Setting up python3.3 (3.3.1-1ubuntu5) ... python3.3: can't open file '/usr/lib/python3.3/py_compile.py': [Errno 2] No such file or directory dpkg: error processing python3.3 (--configure):  subprocess installed post-installation script returned error exit status 2 Errors were encountered while processing:  python3.3 E: Sub-process /usr/bin/dpkg returned an error code (1) A package failed to install.  Trying to recover: Setting up python3.3 (3.3.1-1ubuntu5) ... python3.3: can't open file '/usr/lib/python3.3/py_compile.py': [Errno 2] No such file or directory dpkg: error processing python3.3 (--configure):  subprocess installed post-installation script returned error exit status 2 Errors were encountered while processing:   Any idea how to rectify the error?
7857
I read about a security flaw in Git, which was fixed in version 2.2.1. I currently have Git 2.1.0 on my system (Ubuntu 14.10), and tried to reinstall it with apt. However, apt told me that I currently have the latest version.  The Git website does not have prebuilt versions for Linux. They say that you can install it with package managers. Without building from source, how would I install the latest version of Git?
34415
I see the following error while trying run the command shown below. I read somewhere that my /boot partition is low on disk space. How can I increase the size of the /boot partition so I can install more software? I have a 500GB hard disk, so there is enough space to play with.  sudo apt-get install libdvdread4  gzip: stdout: No space left on device                                                                                                                                                                                  E: mkinitramfs failure cpio 141 gzip 1                                                                                                                                                                                 update-initramfs: failed for /boot/initrd.img-3.2.0-33-generic with 1.                                                                                                                                                 run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1                                                                                                                                            Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-3.2.0-33-generic.postinst line 1010.                                                                                                        dpkg: error processing linux-image-3.2.0-33-generic (--configure):                                                                                                                                                      subprocess installed post-installation script returned error exit status 2                                                                                                                                            dpkg: dependency problems prevent configuration of linux-image-server:                                                                                                                                                 linux-image-server depends on linux-image-3.2.0-33-generic; however:                                                                                                                                                    Package linux-image-3.2.0-33-generic is not configured yet.    dpkg: error processing linux-image-server (--configure):     dependency problems - leaving unconfigured    dpkg: dependency problems prevent configuration of linux-server:     linux-server depends on linux-image-server (= 3.2.0.33.36); however:      Package linux-image-server is not configured yet.    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.                                                                                                           No apport report written because the error message indicates its a followup error from a previous failure.  Errors were encountered while processing:  linux-image-3.2.0-33-generic  linux-image-server  linux-server N: Ignoring file 'michael-gruz-canon-precise.list.1' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension N: Ignoring file 'michael-gruz-canon-precise.list.1' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension   Listed below is the output of du  Filesystem              1K-blocks      Used Available Use% Mounted on /dev/mapper/ubuntu-root 712660664 104095912 572363692  16% / udev                      3964792         4   3964788   1% /dev tmpfs                     1591012      1064   1589948   1% /run none                         5120         0      5120   0% /run/lock none                      3977528       684   3976844   1% /run/shm /dev/sda1                  233191    219821       929 100% /boot
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)
44394
I recently moved to Linux, and I am in love with the experience. Opinions apart, I am having problems when running sudo dpkg --configure -a  My computer stops processing the command here:  You may know Adobe Flash Player is no longer supported, and I believe that could be why the command is unable to load pepperflashplugin-nonfree. I have tried fixing the problem by checking older posts here, but none of them was able to fix this problem.
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.
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) ➜
80599
I'm using Ubuntu 15.04. Whenever I tried to install any package, I got the error message in the title. How can I get rid of this annoying error message?  :~$ uname -a Linux LongerVision001 3.19.0-25-generic #26-Ubuntu SMP Fri Jul 24 21:17:31 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux   :~$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description:    Ubuntu 15.04 Release:        15.04 Codename:       vivid   Calculating upgrade... 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 Setting up runit (2.1.2-3ubuntu1) ... start: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused dpkg: error processing package runit (--configure):  subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing:  runit E: Sub-process /usr/bin/dpkg returned an error code (1)
8558
I would like to ask a very basic question but I have never thought about it before. Well, when someone installs an application from terminal, he has to add the repository first, right? On the other side, when someone installs an application from the Ubuntu Software Center, is the repository then added automatically?  I am asking those questions to figure out this: When I run update and then upgrade, will this application be upgraded or not? Is the result same in two options?
122772
I've installed git-gui tool via sudo apt-get install git-gui. But how do I start it? Trying with search or git-gui command did not find and UI tool for Git.
123053
I noticed that the most recent update of ubuntu offers to install systemd components. I hesitate to allow this update for I had very nasty experience of doing this in debian-testing when services weren't starting and I had no network.  Is it possible to keep the current init system (upstart?) and somehow, on a permanet basis, ignore the offer to install systemd?
20346
So I'm just coming back to Ubuntu after some time away, running 14.04 and I've gotten things customized the way I like them, more or less.  At one point I'd attempted to download "Popcorn-Time."  I ran into some issues of some sort and decided to remove it/that it wasn't worth the trouble.    Something from the install process seems to be "stuck" in apt-get though.  I'm having issues getting new packages and I'm getting this message:  Processing triggers for man-db (2.6.7.1-1ubuntu1) ... Setting up popcorn-time (0.3.2~webupd8~6) ... Downloading Popcorn Time... --2015-09-06 11:25:00--  http://cdn.popcorntime.io/build/Popcorn-Time ... Resolving cdn.popcorntime.io ... Connecting to cdn.popcorntime.io (cdn.popcorntime.io)|45.33.69.37|:80... connected. HTTP request sent, awaiting response... 404 Not Found 2015-09-06 11:25:00 ERROR 404: Not Found.  download failed Popcorn Time is NOT installed. dpkg: error processing package popcorn-time (--configure):  subprocess installed post-installation script returned error exit status 1 ...  Errors were encountered while processing:  popcorn-time E: Sub-process /usr/bin/dpkg returned an error code (1)   I've omitted a couple of lines there, but I think you get the idea.  This is occurring when I try to install most packages using apt-get, maybe all packages.  It seems like it's interfering, and frankly I'd like it to not try to install popcorn time every time I install any package.  Any ideas?
64722
The file will be downloaded into /usr/share/virtualbox-ext-pack Hash mismatch Oracle_VM_VirtualBox_Extension_Pack-5.0.24.vbox-extpack dpkg: error processing package virtualbox-ext-pack (--configure):  subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing:  virtualbox-ext-pack E: Sub-process /usr/bin/dpkg returned an error code (1)   Is there a workaround for this?
71705
I have the following line in the Dockerfile.  RUN apt-get install -y tzdata   When I run it, it asks for my input. After I provided my input, it hung there. Does anybody know how to solve this problem?  Step 25/25 : RUN apt-get install -y tzdata  ---&gt; Running in ee47a1beff84 Reading package lists... Building dependency tree... Reading state information... The following NEW packages will be installed:   tzdata 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 189 kB of archives. After this operation, 3104 kB of additional disk space will be used. Get:1 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 tzdata all 2018i-0ubuntu0.18.04 [189 kB] debconf: unable to initialize frontend: Dialog debconf: (TERM is not set, so the dialog frontend is not usable.) debconf: falling back to frontend: Readline debconf: unable to initialize frontend: Readline debconf: (This frontend requires a controlling tty.) debconf: falling back to frontend: Teletype dpkg-preconfigure: unable to re-open stdin:  Fetched 189 kB in 1s (219 kB/s) Selecting previously unselected package tzdata. (Reading database ... 25194 files and directories currently installed.) Preparing to unpack .../tzdata_2018i-0ubuntu0.18.04_all.deb ... Unpacking tzdata (2018i-0ubuntu0.18.04) ... Setting up tzdata (2018i-0ubuntu0.18.04) ... debconf: unable to initialize frontend: Dialog debconf: (TERM is not set, so the dialog frontend is not usable.) debconf: falling back to frontend: Readline Configuring tzdata ------------------  Please select the geographic area in which you live. Subsequent configuration questions will narrow this down by presenting a list of cities, representing the time zones in which they are located.    1. Africa      4. Australia  7. Atlantic  10. Pacific  13. Etc   2. America     5. Arctic     8. Europe    11. SystemV   3. Antarctica  6. Asia       9. Indian    12. US Geographic area: ``