Package Manager Troubleshooting Terminal Output
I cant install or remove anyithing because of avg2013flx error and i cant remove avg anti virus. Here is my Terminal Output from step 6 in Package Maneger Troubleshooting:
/etc/apt/
1 # deb http://
2 # deb-src http://
/etc/apt/
1 # deb cdrom:[Ubuntu 14.04.2 LTS _Trusty Tahr_ - Release amd64 (20150218.1)]/ trusty 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. Also, please note that software in universe WILL NOT receive any
15 ## review or updates from the Ubuntu security team.
16 deb http://
17 deb-src http://
18 deb http://
19 deb-src http://
20
21 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
22 ## team, and may not be under a free licence. Please satisfy yourself as to
23 ## your rights to use the software. Also, please note that software in
24 ## multiverse WILL NOT receive any review or updates from the Ubuntu
25 ## security team.
26 deb http://
27 deb-src http://
28 deb http://
29 deb-src http://
30
31 ## N.B. software from this repository may not have been tested as
32 ## extensively as that contained in the main release, although it includes
33 ## newer versions of some applications which may provide useful features.
34 ## Also, please note that software in backports WILL NOT receive any review
35 ## or updates from the Ubuntu security team.
36 deb http://
37 deb-src http://
38
39 deb http://
40 deb-src http://
41 deb http://
42 deb-src http://
43 deb http://
44 deb-src http://
45
46 ## Uncomment the following two lines to add software from Canonical's
47 ## 'partner' repository.
48 ## This software is not part of Ubuntu, but is offered by Canonical and the
49 ## respective vendors as a service to Ubuntu users.
50 deb http://
51 # deb-src http://
52
53 ## This software is not part of Ubuntu, but is offered by third-party
54 ## developers who want to ship their latest software.
55 deb http://
56 deb-src http://
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu apt Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Mark Rijckenberg
- Solved:
- Last query:
- Last reply:
Revision history for this message
|
#1 |
What you provided is only the output of the very last command in the package management troubleshooting procedure.
Please provide the output of ALL commands in step 5 of https:/
Revision history for this message
|
#2 |
What is the full output of:
sudo apt-get update
sudo apt-get --reinstall install nano
Thanks
Revision history for this message
|
#3 |
Sorry i thought i should only show the last command :/
Here is the full one:
Hello mafia, today's date is torsdag, 11-06-15
mafia@mafia:~$ ubuntu-
Support status summary of 'mafia':
You have 2021 packages (100.0%) that can not/no-longer be downloaded
You have 0 packages (0.0%) that are unsupported
Run with --show-unsupported, --show-supported or --show-all to see more details
mafia@mafia:~$ cat /etc/dpkg/
cat: /etc/dpkg/
mafia@mafia:~$ dpkg --print-
i386
mafia@mafia:~$ sudo grep -R proxy /etc/apt/*
[sudo] password for mafia:
mafia@mafia:~$ grep proxy /etc/environment
mafia@mafia:~$ echo $http_proxy
mafia@mafia:~$ echo $ftp_proxy
mafia@mafia:~$ grep proxy /etc/bash.bashrc
mafia@mafia:~$ grep proxy ~/.bashrc
mafia@mafia:~$
mafia@mafia:~$
mafia@mafia:~$ cat /etc/apt/apt.conf
cat: /etc/apt/apt.conf: No such file or directory
mafia@mafia:~$ sudo fuser -vvv /var/lib/dpkg/lock
mafia@mafia:~$ sudo fuser -vvv /var/cache/
mafia@mafia:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_
DISTRIB_
DISTRIB_
mafia@mafia:~$ uname -a
Linux mafia 3.16.0-39-generic #53~14.04.1-Ubuntu SMP Wed May 27 10:03:17 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
mafia@mafia:~$ sudo rm /var/lib/
rm: cannot remove ‘/var/lib/
mafia@mafia:~$ sudo rm /var/cache/
mafia@mafia:~$ sudo rm /var/lib/dpkg/lock
mafia@mafia:~$ sudo cp -arf /var/lib/dpkg /var/lib/
mafia@mafia:~$ sudo mv /var/lib/
mafia@mafia:~$ sudo cp /var/lib/
mafia@mafia:~$ sudo mv /var/lib/
mafia@mafia:~$ sudo cp /var/lib/
mafia@mafia:~$ sudo rm -rf /var/lib/
mafia@mafia:~$ sudo rm -rf /var/lib/apt/lists
mafia@mafia:~$ sudo rm /var/cache/
mafia@mafia:~$ sudo mkdir /var/lib/apt/lists
mafia@mafia:~$ sudo mkdir /var/lib/
mafia@mafia:~$ LANG=C;sudo apt-get clean
mafia@mafia:~$ LANG=C;sudo apt-get autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
mafia@mafia:~$ 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.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up avg2013flx (2013.3118) ...
chown: cannot access '/opt/avg/av': No such file or directory
dpkg: error processing package avg2013flx (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
avg2013flx
E: Sub-process /usr/bin/dpkg returned an error code (1)
mafia@mafia:~$ LANG=C;sudo apt-get --fix-missing update -o APT::Cache-
Ign http://
Ign http://
Ign http://
Get:1 http://
Ign http://
Get:2 http://
Get:3 http://
Get:4 http://
Get:5 http://
Get:6 http://
Ign http://
Ign http://
Get:7 http://
Get:8 http://
Get:9 http://
Get:10 http://
Get:11 http://
Get:12 http://
Get:13 http://
Get:14 http://
Get:15 http://
Get:16 http://
Get:17 http://
Ign 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://
Get:79 http://
Get:80 http://
Get:81 http://
Get:82 http://
Fetched 31,3 MB in 32s (954 kB/s)
Reading package lists... Done
mafia@mafia:~$
mafia@mafia:~$ sudo dpkg --configure -a
mafia@mafia:~$ sudo dpkg --clear-avail
mafia@mafia:~$ 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.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up avg2013flx (2013.3118) ...
chown: cannot access '/opt/avg/av': No such file or directory
dpkg: error processing package avg2013flx (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
avg2013flx
E: Sub-process /usr/bin/dpkg returned an error code (1)
mafia@mafia:~$ 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.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up avg2013flx (2013.3118) ...
chown: cannot access '/opt/avg/av': No such file or directory
dpkg: error processing package avg2013flx (--configure):
subprocess installed post-installation script returned error exit status 1
E: Sub-process /usr/bin/dpkg returned an error code (1)
mafia@mafia:~$ LANG=C;sudo apt-get update -o APT::Cache-
Ign http://
Ign http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Ign http://
Hit http://
Hit http://
Hit http://
Hit http://
Ign http://
Ign http://
Ign http://
Ign http://
Hit http://
Ign http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
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.
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 avg2013flx (2013.3118) ...
chown: cannot access '/opt/avg/av': No such file or directory
dpkg: error processing package avg2013flx (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
avg2013flx
E: Sub-process /usr/bin/dpkg returned an error code (1)
mafia@mafia:~$ find /etc/apt -name '*.list' -exec bash -c 'echo -e "\n$1\n"; cat -n "$1"' _ '{}' \;
/etc/apt/
1 # deb http://
2 # deb-src http://
/etc/apt/
1 # deb cdrom:[Ubuntu 14.04.2 LTS _Trusty Tahr_ - Release amd64 (20150218.1)]/ trusty 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. Also, please note that software in universe WILL NOT receive any
15 ## review or updates from the Ubuntu security team.
16 deb http://
17 deb-src http://
18 deb http://
19 deb-src http://
20
21 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
22 ## team, and may not be under a free licence. Please satisfy yourself as to
23 ## your rights to use the software. Also, please note that software in
24 ## multiverse WILL NOT receive any review or updates from the Ubuntu
25 ## security team.
26 deb http://
27 deb-src http://
28 deb http://
29 deb-src http://
30
31 ## N.B. software from this repository may not have been tested as
32 ## extensively as that contained in the main release, although it includes
33 ## newer versions of some applications which may provide useful features.
34 ## Also, please note that software in backports WILL NOT receive any review
35 ## or updates from the Ubuntu security team.
36 deb http://
37 deb-src http://
38
39 deb http://
40 deb-src http://
41 deb http://
42 deb-src http://
43 deb http://
44 deb-src http://
45
46 ## Uncomment the following two lines to add software from Canonical's
47 ## 'partner' repository.
48 ## This software is not part of Ubuntu, but is offered by Canonical and the
49 ## respective vendors as a service to Ubuntu users.
50 deb http://
51 # deb-src http://
52
53 ## This software is not part of Ubuntu, but is offered by third-party
54 ## developers who want to ship their latest software.
55 deb http://
56 deb-src http://
mafia@mafia:~$
Revision history for this message
|
#4 |
Great fast support by the way :)
Revision history for this message
|
#5 |
Here is the full output from sudo apt-get update and sudo apt-get --reinstall install nano
Hello mafia, today's date is torsdag, 11-06-15
mafia@mafia:~$ sudo apt-get update
[sudo] password for mafia:
Ign http://
Ign http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Ign http://
Hit http://
Hit http://
Hit http://
Hit http://
Ign http://
Hit http://
Ign http://
Ign http://
Ign http://
Hit http://
Ign http://
Get:1 http://
Get:2 http://
Get:3 http://
Hit http://
Get:4 http://
Get:5 http://
Get:6 http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Get:7 http://
Get:8 http://
Get:9 http://
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://
Hit http://
Hit http://
Hit http://
Hit 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://
Hit http://
Hit http://
Hit http://
Hit 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://
Hit http://
Hit http://
Hit http://
Hit http://
Ign http://
Ign http://
Ign http://
Ign http://
Fetched 3 240 kB in 19s (163 kB/s)
Reading package lists... Done
mafia@mafia:~$ sudo apt-get --reinstall install nano
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 194 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://
Fetched 194 kB in 0s (258 kB/s)
(Reading database ... 205060 files and directories currently installed.)
Preparing to unpack .../nano_
Unpacking nano (2.2.6-1ubuntu1) over (2.2.6-1ubuntu1) ...
Processing triggers for doc-base (0.10.5) ...
Processing 2 changed doc-base files...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Setting up avg2013flx (2013.3118) ...
chown: cannot access ‘/opt/avg/av’: No such file or directory
dpkg: error processing package avg2013flx (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up nano (2.2.6-1ubuntu1) ...
Errors were encountered while processing:
avg2013flx
E: Sub-process /usr/bin/dpkg returned an error code (1)
Revision history for this message
|
#6 |
The culprit seems to be the avg2013flx which apparently is in a strange state - installed and not yet configured, but the files are not there.
Try
sudo dpkg --purge avg2013flx
and copy/paste all output.
Revision history for this message
|
#7 |
This is the output when i try dpkg --purge avg2013flx
Hello mafia, today's date is torsdag, 11-06-15
mafia@mafia:~$ sudo dpkg --purge avg2013flx
[sudo] password for mafia:
(Reading database ... 205059 files and directories currently installed.)
Removing avg2013flx (2013.3118) ...
invoke-rc.d: unknown initscript, /etc/init.d/avgd not found.
dpkg: error processing package avg2013flx (--purge):
subprocess installed pre-removal script returned error exit status 100
Errors were encountered while processing:
avg2013flx
Revision history for this message
|
#8 |
What is the output of:
file /etc/init.d/avgd
Thanks
Revision history for this message
|
#9 |
Here is the output of file /etc/init.d/avgd
Hello mafia, today's date is torsdag, 11-06-15
mafia@mafia:~$ file /etc/init.d/avgd
/etc/init.d/avgd: broken symbolic link to `/opt/avg/
Revision history for this message
|
#10 |
Please try the last remark by John0278 (jjg6908) here:
https:/
So run this Terminal command instead:
sudo dpkg --remove --force-all avg2013flx
Revision history for this message
|
#11 |
sudo dpkg --remove --force-all avg2013flx didn't work
Hello mafia, today's date is torsdag, 11-06-15
mafia@mafia:~$ sudo dpkg --remove --force-all avg2013flx
[sudo] password for mafia:
(Reading database ... 205059 files and directories currently installed.)
Removing avg2013flx (2013.3118) ...
invoke-rc.d: unknown initscript, /etc/init.d/avgd not found.
dpkg: error processing package avg2013flx (--remove):
subprocess installed pre-removal script returned error exit status 100
Errors were encountered while processing:
avg2013flx
Revision history for this message
|
#12 |
OK, run these Terminal commands:
sudo ln -s /bin/true /etc/init.d/avgd
sudo mv /var/lib/
sudo mv /var/lib/
sudo dpkg --remove --force-all avg2013flx
Source: http://
Revision history for this message
|
#13 |
Thanks Mark Rijckenberg, that solved my question.