Attempts to update software keep returning errors using both apt-get and update manager gui
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://
Get:2 http://
Get:3 http://
Get:4 http://
Ign:5 https:/
Hit:6 https:/
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/
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.
runit
git-daemon-run
E: Sub-process /usr/bin/dpkg returned an error code (1)
aoife@aoife:~$
I found this:
http://
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:/
And the commands gave me the following output, :
aoife@aoife:~$ ubuntu-
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/
cat: /etc/dpkg/
aoife@aoife:~$ dpkg --print-
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/
aoife@aoife:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_
DISTRIB_
DISTRIB_
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/
aoife@aoife:~$ sudo rm /var/cache/
aoife@aoife:~$ sudo rm /var/lib/dpkg/lock
aoife@aoife:~$ sudo cp -arf /var/lib/dpkg /var/lib/
aoife@aoife:~$ sudo mv /var/lib/
aoife@aoife:~$ sudo cp /var/lib/
aoife@aoife:~$ sudo mv /var/lib/
aoife@aoife:~$
aoife@aoife:~$ sudo cp /var/lib/
cp: cannot stat '/var/lib/
aoife@aoife:~$
aoife@aoife:~$ sudo rm -rf /var/lib/
aoife@aoife:~$ sudo rm -rf /var/lib/apt/lists
aoife@aoife:~$ sudo rm /var/cache/
aoife@aoife:~$ sudo mkdir /var/lib/apt/lists
aoife@aoife:~$ sudo mkdir /var/lib/
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/
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/
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.
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/
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.
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/
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.
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-
Get:1 http://
Get:2 http://
Ign:3 https:/
Get:4 http://
Get:5 https:/
Get:6 http://
Get:7 http://
Get:8 https:/
Get:9 https:/
Get:10 http://
Get:11 http://
Get:12 http://
Get:13 http://
Get:14 http://
Get:15 http://
Get:16 http://
Get:17 http://
Get:18 http://
Get:19 http://
Get:20 http://
Get:21 http://
Get:22 http://
Get:23 http://
Get:24 http://
Get:25 http://
Get:26 http://
Get:27 http://
Get:28 http://
Get:29 http://
Get:30 http://
Get:31 http://
Get:32 http://
Get:33 http://
Get:34 http://
Get:35 http://
Get:36 http://
Get:37 http://
Get:38 http://
Get:39 http://
Get:40 http://
Get:41 http://
Get:42 http://
Get:43 http://
Get:44 http://
Get:45 http://
Get:46 http://
Get:47 http://
Get:48 http://
Get:49 http://
Get:50 http://
Get:51 http://
Get:52 http://
Get:53 http://
Get:54 http://
Get:55 http://
Get:56 http://
Get:57 http://
Get:58 http://
Get:59 http://
Get:60 http://
Get:61 http://
Get:62 http://
Get:63 http://
Get:64 http://
Get:65 http://
Get:66 http://
Get:67 http://
Get:68 http://
Get:69 http://
Get:70 http://
Get:71 http://
Get:72 http://
Get:73 http://
Get:74 http://
Get:75 http://
Get:76 http://
Get:77 http://
Get:78 http://
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-
Hit:1 http://
Hit:2 http://
Hit:3 http://
Hit:4 http://
Ign:5 https:/
Hit:6 https:/
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/
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.
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/
1 # deb cdrom:[Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719)]/ xenial main restricted
2
3 # See http://
4 # newer versions of the distribution.
5 deb http://
6 # deb-src http://
7
8 ## Major bug fix updates produced after the final release of the
9 ## distribution.
10 deb http://
11 # deb-src http://
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://
19 # deb-src http://
20 deb http://
21 # deb-src http://
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://
29 # deb-src http://
30 deb http://
31 # deb-src http://
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://
39 # deb-src http://
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://
46 # deb-src http://
47
48 deb http://
49 # deb-src http://
50 deb http://
51 # deb-src http://
52 deb http://
53 # deb-src http://
54
55
/etc/apt/
1 deb https:/
/etc/apt/
1 # deb http://
2 # deb-src http://
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/
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: