Attempts to update software keep returning errors using both apt-get and update manager gui

Asked by Aoife Scanlon

Every time i run:
sudo apt-get update
sudo apt-get upgrade

I get:

aoife@aoife:~$ sudo apt-get update
[sudo] password for aoife:
Hit:1 http://archive.ubuntu.com/ubuntu xenial InRelease
Get:2 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]
Get:3 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]
Get:4 http://archive.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Ign:5 https://atlassian.artifactoryonline.com/atlassian/hipchat-apt-client xenial InRelease
Hit:6 https://atlassian.artifactoryonline.com/atlassian/hipchat-apt-client xenial Release
Fetched 306 kB in 0s (315 kB/s)
Reading package lists... Done
aoife@aoife:~$ sudo apt-get install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
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
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
No apport report written because the error message indicates its a followup error from a previous failure.
                          Errors were encountered while processing:
 runit
 git-daemon-run
E: Sub-process /usr/bin/dpkg returned an error code (1)
aoife@aoife:~$

I found this:
http://askubuntu.com/questions/765565/how-to-fix-processing-with-runit-and-git-daemon-run

It says to run:
sudo apt-get purge runit
sudo apt-get purge git-all
sudo apt-get purge git
sudo apt-get autoremove
sudo apt update
sudo apt install git

but I'm worried it will damage my existing local .git repositories. Will it? Or will it solve my problem?

I followed the instructions here:
https://help.ubuntu.com/community/PackageManagerTroubleshootingProcedure

And the commands gave me the following output, :

aoife@aoife:~$ ubuntu-support-status
Support status summary of 'aoife':

You have 1825 packages (92.9%) supported until April 2021 (5y)
You have 16 packages (0.8%) supported until January 2022 (5y)
You have 30 packages (1.5%) supported until January 2017 (9m)
You have 55 packages (2.8%) supported until April 2019 (3y)

You have 3 packages (0.2%) that can not/no-longer be downloaded
You have 36 packages (1.8%) that are unsupported

Run with --show-unsupported, --show-supported or --show-all to see more details
aoife@aoife:~$ cat /etc/dpkg/dpkg.cfg.d/multiarch
cat: /etc/dpkg/dpkg.cfg.d/multiarch: No such file or directory
aoife@aoife:~$ dpkg --print-foreign-architectures
i386
aoife@aoife:~$ sudo grep -R proxy /etc/apt/*
[sudo] password for aoife:
aoife@aoife:~$ grep proxy /etc/environment
aoife@aoife:~$ echo $http_proxy

aoife@aoife:~$ echo $ftp_proxy

aoife@aoife:~$ grep proxy /etc/bash.bashrc
aoife@aoife:~$ grep proxy ~/.bashrc
aoife@aoife:~$ cat /etc/apt/apt.conf
cat: /etc/apt/apt.conf: No such file or directory
aoife@aoife:~$ sudo fuser -vvv /var/lib/dpkg/lock
aoife@aoife:~$ sudo fuser -vvv /var/cache/apt/archives/lock
aoife@aoife:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.1 LTS"
aoife@aoife:~$ uname -a
Linux aoife 4.4.0-57-generic #78-Ubuntu SMP Fri Dec 9 23:50:32 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
aoife@aoife:~$ sudo rm /var/lib/apt/lists/lock
aoife@aoife:~$ sudo rm /var/cache/apt/archives/lock
aoife@aoife:~$ sudo rm /var/lib/dpkg/lock
aoife@aoife:~$ sudo cp -arf /var/lib/dpkg /var/lib/dpkg.backup
aoife@aoife:~$ sudo mv /var/lib/dpkg/status /var/lib/dpkg/status-bad
aoife@aoife:~$ sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status || sudo cp /var/backups/apt.extended_states.0 /var/lib/dpkg/status
aoife@aoife:~$ sudo mv /var/lib/dpkg/available /var/lib/dpkg/available-bad
aoife@aoife:~$
aoife@aoife:~$ sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/available
cp: cannot stat '/var/lib/dpkg/available-old': No such file or directory
aoife@aoife:~$
aoife@aoife:~$ sudo rm -rf /var/lib/dpkg/updates/*
aoife@aoife:~$ sudo rm -rf /var/lib/apt/lists
aoife@aoife:~$ sudo rm /var/cache/apt/*.bin
aoife@aoife:~$ sudo mkdir /var/lib/apt/lists
aoife@aoife:~$ sudo mkdir /var/lib/apt/lists/partial
aoife@aoife:~$ LANG=C;sudo apt-get clean
aoife@aoife:~$ LANG=C;sudo apt-get autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
aoife@aoife:~$ sudo dpkg --configure -a
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
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
aoife@aoife:~$ sudo dpkg --clear-avail
aoife@aoife:~$ LANG=C;sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
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
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
No apport report written because the error message indicates its a followup error from a previous failure.
                          Errors were encountered while processing:
 runit
 git-daemon-run
E: Sub-process /usr/bin/dpkg returned an error code (1)
aoife@aoife:~$ LANG=C;sudo apt-get --fix-missing install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
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
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
No apport report written because the error message indicates its a followup error from a previous failure.
                          Errors were encountered while processing:
 runit
 git-daemon-run
E: Sub-process /usr/bin/dpkg returned an error code (1)
aoife@aoife:~$ LANG=C;sudo apt-get --purge autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
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
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
No apport report written because the error message indicates its a followup error from a previous failure.
                          Errors were encountered while processing:
 runit
 git-daemon-run
E: Sub-process /usr/bin/dpkg returned an error code (1)
aoife@aoife:~$ LANG=C;sudo apt-get --fix-missing update -o APT::Cache-Limit=100000000
Get:1 http://archive.ubuntu.com/ubuntu xenial InRelease [247 kB]
Get:2 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]
Ign:3 https://atlassian.artifactoryonline.com/atlassian/hipchat-apt-client xenial InRelease
Get:4 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]
Get:5 https://atlassian.artifactoryonline.com/atlassian/hipchat-apt-client xenial Release [1847 B]
Get:6 http://archive.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Get:7 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages [1201 kB]
Get:8 https://atlassian.artifactoryonline.com/atlassian/hipchat-apt-client xenial Release.gpg [821 B]
Get:9 https://atlassian.artifactoryonline.com/atlassian/hipchat-apt-client xenial/main amd64 Packages [2162 B]
Get:10 http://archive.ubuntu.com/ubuntu xenial/main i386 Packages [1196 kB]
Get:11 http://archive.ubuntu.com/ubuntu xenial/main Translation-en [568 kB]
Get:12 http://archive.ubuntu.com/ubuntu xenial/main amd64 DEP-11 Metadata [733 kB]
Get:13 http://archive.ubuntu.com/ubuntu xenial/main DEP-11 64x64 Icons [409 kB]
Get:14 http://archive.ubuntu.com/ubuntu xenial/restricted amd64 Packages [8344 B]
Get:15 http://archive.ubuntu.com/ubuntu xenial/restricted i386 Packages [8684 B]
Get:16 http://archive.ubuntu.com/ubuntu xenial/restricted Translation-en [2908 B]
Get:17 http://archive.ubuntu.com/ubuntu xenial/restricted amd64 DEP-11 Metadata [186 B]
Get:18 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages [7532 kB]
Get:19 http://archive.ubuntu.com/ubuntu xenial/universe i386 Packages [7512 kB]
Get:20 http://archive.ubuntu.com/ubuntu xenial/universe Translation-en [4354 kB]
Get:21 http://archive.ubuntu.com/ubuntu xenial/universe amd64 DEP-11 Metadata [3410 kB]
Get:22 http://archive.ubuntu.com/ubuntu xenial/universe DEP-11 64x64 Icons [7448 kB]
Get:23 http://archive.ubuntu.com/ubuntu xenial/multiverse amd64 Packages [144 kB]
Get:24 http://archive.ubuntu.com/ubuntu xenial/multiverse i386 Packages [140 kB]
Get:25 http://archive.ubuntu.com/ubuntu xenial/multiverse Translation-en [106 kB]
Get:26 http://archive.ubuntu.com/ubuntu xenial/multiverse amd64 DEP-11 Metadata [63.8 kB]
Get:27 http://archive.ubuntu.com/ubuntu xenial/multiverse DEP-11 64x64 Icons [230 kB]
Get:28 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [444 kB]
Get:29 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 Packages [436 kB]
Get:30 http://archive.ubuntu.com/ubuntu xenial-updates/main Translation-en [173 kB]
Get:31 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 DEP-11 Metadata [303 kB]
Get:32 http://archive.ubuntu.com/ubuntu xenial-updates/main DEP-11 64x64 Icons [186 kB]
Get:33 http://archive.ubuntu.com/ubuntu xenial-updates/restricted amd64 Packages [6576 B]
Get:34 http://archive.ubuntu.com/ubuntu xenial-updates/restricted i386 Packages [6528 B]
Get:35 http://archive.ubuntu.com/ubuntu xenial-updates/restricted Translation-en [2016 B]
Get:36 http://archive.ubuntu.com/ubuntu xenial-updates/restricted amd64 DEP-11 Metadata [157 B]
Get:37 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [372 kB]
Get:38 http://archive.ubuntu.com/ubuntu xenial-updates/universe i386 Packages [369 kB]
Get:39 http://archive.ubuntu.com/ubuntu xenial-updates/universe Translation-en [137 kB]
Get:40 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 DEP-11 Metadata [121 kB]
Get:41 http://archive.ubuntu.com/ubuntu xenial-updates/universe DEP-11 64x64 Icons [145 kB]
Get:42 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 Packages [7380 B]
Get:43 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse i386 Packages [6176 B]
Get:44 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse Translation-en [3080 B]
Get:45 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 DEP-11 Metadata [2520 B]
Get:46 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse DEP-11 64x64 Icons [7765 B]
Get:47 http://archive.ubuntu.com/ubuntu xenial-backports/main amd64 Packages [4404 B]
Get:48 http://archive.ubuntu.com/ubuntu xenial-backports/main i386 Packages [4404 B]
Get:49 http://archive.ubuntu.com/ubuntu xenial-backports/main Translation-en [3124 B]
Get:50 http://archive.ubuntu.com/ubuntu xenial-backports/main amd64 DEP-11 Metadata [208 B]
Get:51 http://archive.ubuntu.com/ubuntu xenial-backports/main DEP-11 64x64 Icons [29 B]
Get:52 http://archive.ubuntu.com/ubuntu xenial-backports/restricted amd64 DEP-11 Metadata [194 B]
Get:53 http://archive.ubuntu.com/ubuntu xenial-backports/universe amd64 Packages [2412 B]
Get:54 http://archive.ubuntu.com/ubuntu xenial-backports/universe i386 Packages [2412 B]
Get:55 http://archive.ubuntu.com/ubuntu xenial-backports/universe Translation-en [1216 B]
Get:56 http://archive.ubuntu.com/ubuntu xenial-backports/universe amd64 DEP-11 Metadata [212 B]
Get:57 http://archive.ubuntu.com/ubuntu xenial-backports/universe DEP-11 64x64 Icons [29 B]
Get:58 http://archive.ubuntu.com/ubuntu xenial-backports/multiverse amd64 DEP-11 Metadata [212 B]
Get:59 http://archive.ubuntu.com/ubuntu xenial-backports/multiverse DEP-11 64x64 Icons [29 B]
Get:60 http://archive.ubuntu.com/ubuntu xenial-security/main amd64 Packages [195 kB]
Get:61 http://archive.ubuntu.com/ubuntu xenial-security/main i386 Packages [189 kB]
Get:62 http://archive.ubuntu.com/ubuntu xenial-security/main Translation-en [81.0 kB]
Get:63 http://archive.ubuntu.com/ubuntu xenial-security/main amd64 DEP-11 Metadata [68.2 kB]
Get:64 http://archive.ubuntu.com/ubuntu xenial-security/main DEP-11 64x64 Icons [43.1 kB]
Get:65 http://archive.ubuntu.com/ubuntu xenial-security/restricted amd64 Packages [6576 B]
Get:66 http://archive.ubuntu.com/ubuntu xenial-security/restricted i386 Packages [6528 B]
Get:67 http://archive.ubuntu.com/ubuntu xenial-security/restricted Translation-en [2016 B]
Get:68 http://archive.ubuntu.com/ubuntu xenial-security/restricted amd64 DEP-11 Metadata [200 B]
Get:69 http://archive.ubuntu.com/ubuntu xenial-security/universe amd64 Packages [66.1 kB]
Get:70 http://archive.ubuntu.com/ubuntu xenial-security/universe i386 Packages [63.8 kB]
Get:71 http://archive.ubuntu.com/ubuntu xenial-security/universe Translation-en [36.4 kB]
Get:72 http://archive.ubuntu.com/ubuntu xenial-security/universe amd64 DEP-11 Metadata [19.4 kB]
Get:73 http://archive.ubuntu.com/ubuntu xenial-security/universe DEP-11 64x64 Icons [25.6 kB]
Get:74 http://archive.ubuntu.com/ubuntu xenial-security/multiverse amd64 Packages [2756 B]
Get:75 http://archive.ubuntu.com/ubuntu xenial-security/multiverse i386 Packages [2928 B]
Get:76 http://archive.ubuntu.com/ubuntu xenial-security/multiverse Translation-en [1124 B]
Get:77 http://archive.ubuntu.com/ubuntu xenial-security/multiverse amd64 DEP-11 Metadata [212 B]
Get:78 http://archive.ubuntu.com/ubuntu xenial-security/multiverse DEP-11 64x64 Icons [29 B]
Fetched 39.2 MB in 12s (3106 kB/s)
AppStream cache update completed, but some metadata was ignored due to errors.
Reading package lists... Done
aoife@aoife:~$ LANG=C;sudo apt-get update -o APT::Cache-Limit=100000000 && sudo apt-get dist-upgrade
Hit:1 http://archive.ubuntu.com/ubuntu xenial InRelease
Hit:2 http://archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit:3 http://archive.ubuntu.com/ubuntu xenial-backports InRelease
Hit:4 http://archive.ubuntu.com/ubuntu xenial-security InRelease
Ign:5 https://atlassian.artifactoryonline.com/atlassian/hipchat-apt-client xenial InRelease
Hit:6 https://atlassian.artifactoryonline.com/atlassian/hipchat-apt-client xenial Release
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 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
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
No apport report written because the error message indicates its a followup error from a previous failure.
                          Errors were encountered while processing:
 runit
 git-daemon-run
E: Sub-process /usr/bin/dpkg returned an error code (1)
aoife@aoife:~$ find /etc/apt -name '*.list' -exec bash -c 'echo -e "\n$1\n"; cat -n "$1"' _ '{}' \;

/etc/apt/sources.list

     1 # deb cdrom:[Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719)]/ xenial main restricted
     2
     3 # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
     4 # newer versions of the distribution.
     5 deb http://archive.ubuntu.com/ubuntu xenial main restricted
     6 # deb-src http://ie.archive.ubuntu.com/ubuntu/ xenial main restricted
     7
     8 ## Major bug fix updates produced after the final release of the
     9 ## distribution.
    10 deb http://archive.ubuntu.com/ubuntu xenial-updates main restricted
    11 # deb-src http://ie.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
    12
    13 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    14 ## team, and may not be under a free licence. Please satisfy yourself as to
    15 ## your rights to use the software. Also, please note that software in
    16 ## universe WILL NOT receive any review or updates from the Ubuntu security
    17 ## team.
    18 deb http://archive.ubuntu.com/ubuntu xenial universe
    19 # deb-src http://ie.archive.ubuntu.com/ubuntu/ xenial universe
    20 deb http://archive.ubuntu.com/ubuntu xenial-updates universe
    21 # deb-src http://ie.archive.ubuntu.com/ubuntu/ xenial-updates universe
    22
    23 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    24 ## team, and may not be under a free licence. Please satisfy yourself as to
    25 ## your rights to use the software. Also, please note that software in
    26 ## multiverse WILL NOT receive any review or updates from the Ubuntu
    27 ## security team.
    28 deb http://archive.ubuntu.com/ubuntu xenial multiverse
    29 # deb-src http://ie.archive.ubuntu.com/ubuntu/ xenial multiverse
    30 deb http://archive.ubuntu.com/ubuntu xenial-updates multiverse
    31 # deb-src http://ie.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
    32
    33 ## N.B. software from this repository may not have been tested as
    34 ## extensively as that contained in the main release, although it includes
    35 ## newer versions of some applications which may provide useful features.
    36 ## Also, please note that software in backports WILL NOT receive any review
    37 ## or updates from the Ubuntu security team.
    38 deb http://archive.ubuntu.com/ubuntu xenial-backports main restricted universe multiverse
    39 # deb-src http://ie.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
    40
    41 ## Uncomment the following two lines to add software from Canonical's
    42 ## 'partner' repository.
    43 ## This software is not part of Ubuntu, but is offered by Canonical and the
    44 ## respective vendors as a service to Ubuntu users.
    45 # deb http://archive.canonical.com/ubuntu xenial partner
    46 # deb-src http://archive.canonical.com/ubuntu xenial partner
    47
    48 deb http://archive.ubuntu.com/ubuntu xenial-security main restricted
    49 # deb-src http://security.ubuntu.com/ubuntu xenial-security main restricted
    50 deb http://archive.ubuntu.com/ubuntu xenial-security universe
    51 # deb-src http://security.ubuntu.com/ubuntu xenial-security universe
    52 deb http://archive.ubuntu.com/ubuntu xenial-security multiverse
    53 # deb-src http://security.ubuntu.com/ubuntu xenial-security multiverse
    54
    55

/etc/apt/sources.list.d/atlassian-hipchat4.list

     1 deb https://atlassian.artifactoryonline.com/atlassian/hipchat-apt-client xenial main

/etc/apt/sources.list.d/webupd8team-ubuntu-java-xenial.list

     1 # deb http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main
     2 # deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main
aoife@aoife:~$ sudo dpkg --audit
The following packages have been unpacked but not yet configured.
They must be configured using dpkg --configure or the configure
menu option in dselect for them to work:
 git-daemon-run fast, scalable, distributed revision control system (git-

The following packages are only half configured, probably due to problems
configuring them the first time. The configuration should be retried using
dpkg --configure <package> or the configure menu option in dselect:
 runit system-wide service supervision

aoife@aoife:~$

aoife@aoife:~$ dpkg --configure <runit>
bash: syntax error near unexpected token `newline'
aoife@aoife:~$ dpkg --configure runit
dpkg: error: requested operation requires superuser privilege
aoife@aoife:~$ sudo dpkg --configure runit
[sudo] password for aoife:
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
aoife@aoife:~$ sudo dpkg --configure git-daemon-run
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:
 git-daemon-run

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Solved by:
Manfred Hampl
Solved:
Last query:
Last reply:
Revision history for this message
Best Manfred Hampl (m-hampl) said :
#1

This seems to be the same problem as Bug #1448164 and http://askubuntu.com/questions/631615/unable-to-connect-to-upstart-error-when-installing-git-all

I suggest that you try the command

sudo dpkg --purge --force-depends git-daemon-run runit

This should not have any effect on your git repository.

What is the output of the command? are there warnings or errors shown?

If you need the full set of git packages, you probably should use the command
sudo apt-get install git-daemon-sysvinit git-all
for installing.

Revision history for this message
Aoife Scanlon (deanmoriarty) said :
#2

Thank you

On 5 January 2017 at 17:08, Manfred Hampl <
<email address hidden>> wrote:

> Your question #429762 on apt in Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/apt/+question/429762
>
> Status: Open => Answered
>
> Manfred Hampl proposed the following answer:
> This seems to be the same problem as Bug #1448164 and
> http://askubuntu.com/questions/631615/unable-to-connect-to-upstart-
> error-when-installing-git-all
>
> I suggest that you try the command
>
> sudo dpkg --purge --force-depends git-daemon-run runit
>
> This should not have any effect on your git repository.
>
> What is the output of the command? are there warnings or errors shown?
>
> If you need the full set of git packages, you probably should use the
> command
> sudo apt-get install git-daemon-sysvinit git-all
> for installing.
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/ubuntu/+source/apt/+question/
> 429762/+confirm?answer_id=0
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/ubuntu/+source/apt/+question/429762
>
> You received this question notification because you asked the question.
>

Revision history for this message
Aoife Scanlon (deanmoriarty) said :
#3

Thanks Manfred Hampl, that solved my question.