Package Manager Troubleshooting Terminal Output

Asked by mafia

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/sources.list.d/me-davidsansome-clementine-trusty.list

     1 # deb http://ppa.launchpad.net/me-davidsansome/clementine/ubuntu trusty main
     2 # deb-src http://ppa.launchpad.net/me-davidsansome/clementine/ubuntu trusty main

/etc/apt/sources.list

     1 # deb cdrom:[Ubuntu 14.04.2 LTS _Trusty Tahr_ - Release amd64 (20150218.1)]/ trusty 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 trusty main restricted
     6 deb-src http://archive.ubuntu.com/ubuntu trusty main restricted
     7
     8 ## Major bug fix updates produced after the final release of the
     9 ## distribution.
    10 deb http://archive.ubuntu.com/ubuntu trusty-updates main restricted
    11 deb-src http://archive.ubuntu.com/ubuntu trusty-updates main restricted
    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://archive.ubuntu.com/ubuntu trusty universe
    17 deb-src http://archive.ubuntu.com/ubuntu trusty universe
    18 deb http://archive.ubuntu.com/ubuntu trusty-updates universe
    19 deb-src http://archive.ubuntu.com/ubuntu trusty-updates universe
    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://archive.ubuntu.com/ubuntu trusty multiverse
    27 deb-src http://archive.ubuntu.com/ubuntu trusty multiverse
    28 deb http://archive.ubuntu.com/ubuntu trusty-updates multiverse
    29 deb-src http://archive.ubuntu.com/ubuntu trusty-updates multiverse
    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://archive.ubuntu.com/ubuntu trusty-backports main restricted universe multiverse
    37 deb-src http://archive.ubuntu.com/ubuntu trusty-backports main restricted universe multiverse
    38
    39 deb http://archive.ubuntu.com/ubuntu trusty-security main restricted
    40 deb-src http://archive.ubuntu.com/ubuntu trusty-security main restricted
    41 deb http://archive.ubuntu.com/ubuntu trusty-security universe
    42 deb-src http://archive.ubuntu.com/ubuntu trusty-security universe
    43 deb http://archive.ubuntu.com/ubuntu trusty-security multiverse
    44 deb-src http://archive.ubuntu.com/ubuntu trusty-security multiverse
    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://archive.canonical.com/ubuntu trusty partner
    51 # deb-src http://archive.canonical.com/ubuntu trusty partner
    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://extras.ubuntu.com/ubuntu trusty main
    56 deb-src http://extras.ubuntu.com/ubuntu trusty main

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
Manfred Hampl (m-hampl) said :
#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://help.ubuntu.com/community/PackageManagerTroubleshootingProcedure

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#2

What is the full output of:

sudo apt-get update
sudo apt-get --reinstall install nano

Thanks

Revision history for this message
mafia (fabiansundberg27) said :
#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
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/dpkg.cfg.d/multiarch
cat: /etc/dpkg/dpkg.cfg.d/multiarch: No such file or directory
mafia@mafia:~$ dpkg --print-foreign-architectures
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/apt/archives/lock
mafia@mafia:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.2 LTS"
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/apt/lists/lock
rm: cannot remove ‘/var/lib/apt/lists/lock’: No such file or directory
mafia@mafia:~$ sudo rm /var/cache/apt/archives/lock
mafia@mafia:~$ sudo rm /var/lib/dpkg/lock
mafia@mafia:~$ sudo cp -arf /var/lib/dpkg /var/lib/dpkg.backup
mafia@mafia:~$ sudo mv /var/lib/dpkg/status /var/lib/dpkg/status-bad
mafia@mafia:~$ sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status || sudo cp /var/backups/apt.extended_states.0 /var/lib/dpkg/status
mafia@mafia:~$ sudo mv /var/lib/dpkg/available /var/lib/dpkg/available-bad
mafia@mafia:~$ sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/available
mafia@mafia:~$ sudo rm -rf /var/lib/dpkg/updates/*
mafia@mafia:~$ sudo rm -rf /var/lib/apt/lists
mafia@mafia:~$ sudo rm /var/cache/apt/*.bin
mafia@mafia:~$ sudo mkdir /var/lib/apt/lists
mafia@mafia:~$ sudo mkdir /var/lib/apt/lists/partial
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-Limit=1000000000% [Connecting to archive.ubuntu.com] [Connecting to archive.canonical.com] [Co
Ign http://archive.canonical.com trusty InRelease
Ign http://archive.ubuntu.com trusty InRelease
Ign http://extras.ubuntu.com trusty InRelease
Get:1 http://archive.canonical.com trusty Release.gpg [933 B]
Ign http://archive.ubuntu.com trusty-updates InRelease
Get:2 http://archive.canonical.com trusty Release [9 359 B]
Get:3 http://extras.ubuntu.com trusty Release.gpg [72 B]
Get:4 http://archive.canonical.com trusty/partner amd64 Packages [5 627 B]
Get:5 http://archive.canonical.com trusty/partner i386 Packages [6 313 B]
Get:6 http://archive.canonical.com trusty/partner Translation-en [4 588 B]
Ign http://archive.ubuntu.com trusty-backports InRelease
Ign http://archive.ubuntu.com trusty-security InRelease
Get:7 http://archive.ubuntu.com trusty Release.gpg [933 B]
Get:8 http://extras.ubuntu.com trusty Release [11,9 kB]
Get:9 http://archive.ubuntu.com trusty-updates Release.gpg [933 B]
Get:10 http://archive.ubuntu.com trusty-backports Release.gpg [933 B]
Get:11 http://archive.ubuntu.com trusty-security Release.gpg [933 B]
Get:12 http://archive.ubuntu.com trusty Release [58,5 kB]
Get:13 http://extras.ubuntu.com trusty/main Sources [14 B]
Get:14 http://extras.ubuntu.com trusty/main amd64 Packages [14 B]
Get:15 http://extras.ubuntu.com trusty/main i386 Packages [14 B]
Get:16 http://archive.ubuntu.com trusty-updates Release [63,5 kB]
Get:17 http://archive.ubuntu.com trusty-backports Release [63,5 kB]
Ign http://extras.ubuntu.com trusty/main Translation-en
Get:18 http://archive.ubuntu.com trusty-security Release [63,5 kB]
Get:19 http://archive.ubuntu.com trusty/main Sources [1 064 kB]
Get:20 http://archive.ubuntu.com trusty/restricted Sources [5 433 B]
Get:21 http://archive.ubuntu.com trusty/universe Sources [6 399 kB]
Get:22 http://archive.ubuntu.com trusty/multiverse Sources [174 kB]
Get:23 http://archive.ubuntu.com trusty/main amd64 Packages [1 350 kB]
Get:24 http://archive.ubuntu.com trusty/restricted amd64 Packages [13,0 kB]
Get:25 http://archive.ubuntu.com trusty/universe amd64 Packages [5 859 kB]
Get:26 http://archive.ubuntu.com trusty/multiverse amd64 Packages [132 kB]
Get:27 http://archive.ubuntu.com trusty/main i386 Packages [1 348 kB]
Get:28 http://archive.ubuntu.com trusty/restricted i386 Packages [13,4 kB]
Get:29 http://archive.ubuntu.com trusty/universe i386 Packages [5 866 kB]
Get:30 http://archive.ubuntu.com trusty/multiverse i386 Packages [134 kB]
Get:31 http://archive.ubuntu.com trusty/main Translation-en [762 kB]
Get:32 http://archive.ubuntu.com trusty/multiverse Translation-en [102 kB]
Get:33 http://archive.ubuntu.com trusty/restricted Translation-en [3 457 B]
Get:34 http://archive.ubuntu.com trusty/universe Translation-en [4 089 kB]
Get:35 http://archive.ubuntu.com trusty-updates/main Sources [207 kB]
Get:36 http://archive.ubuntu.com trusty-updates/restricted Sources [3 433 B]
Get:37 http://archive.ubuntu.com trusty-updates/universe Sources [119 kB]
Get:38 http://archive.ubuntu.com trusty-updates/multiverse Sources [5 143 B]
Get:39 http://archive.ubuntu.com trusty-updates/main amd64 Packages [536 kB]
Get:40 http://archive.ubuntu.com trusty-updates/restricted amd64 Packages [11,8 kB]
Get:41 http://archive.ubuntu.com trusty-updates/universe amd64 Packages [285 kB]
Get:42 http://archive.ubuntu.com trusty-updates/multiverse amd64 Packages [12,0 kB]
Get:43 http://archive.ubuntu.com trusty-updates/main i386 Packages [523 kB]
Get:44 http://archive.ubuntu.com trusty-updates/restricted i386 Packages [11,8 kB]
Get:45 http://archive.ubuntu.com trusty-updates/universe i386 Packages [286 kB]
Get:46 http://archive.ubuntu.com trusty-updates/multiverse i386 Packages [12,1 kB]
Get:47 http://archive.ubuntu.com trusty-updates/main Translation-en [255 kB]
Get:48 http://archive.ubuntu.com trusty-updates/multiverse Translation-en [6 148 B]
Get:49 http://archive.ubuntu.com trusty-updates/restricted Translation-en [2 774 B]
Get:50 http://archive.ubuntu.com trusty-updates/universe Translation-en [149 kB]
Get:51 http://archive.ubuntu.com trusty-backports/main Sources [5 851 B]
Get:52 http://archive.ubuntu.com trusty-backports/restricted Sources [28 B]
Get:53 http://archive.ubuntu.com trusty-backports/universe Sources [27,0 kB]
Get:54 http://archive.ubuntu.com trusty-backports/multiverse Sources [1 898 B]
Get:55 http://archive.ubuntu.com trusty-backports/main amd64 Packages [6 256 B]
Get:56 http://archive.ubuntu.com trusty-backports/restricted amd64 Packages [28 B]
Get:57 http://archive.ubuntu.com trusty-backports/universe amd64 Packages [30,2 kB]
Get:58 http://archive.ubuntu.com trusty-backports/multiverse amd64 Packages [1 245 B]
Get:59 http://archive.ubuntu.com trusty-backports/main i386 Packages [6 285 B]
Get:60 http://archive.ubuntu.com trusty-backports/restricted i386 Packages [28 B]
Get:61 http://archive.ubuntu.com trusty-backports/universe i386 Packages [30,3 kB]
Get:62 http://archive.ubuntu.com trusty-backports/multiverse i386 Packages [1 249 B]
Get:63 http://archive.ubuntu.com trusty-backports/main Translation-en [3 645 B]
Get:64 http://archive.ubuntu.com trusty-backports/multiverse Translation-en [776 B]
Get:65 http://archive.ubuntu.com trusty-backports/restricted Translation-en [14 B]
Get:66 http://archive.ubuntu.com trusty-backports/universe Translation-en [26,7 kB]
Get:67 http://archive.ubuntu.com trusty-security/main Sources [85,2 kB]
Get:68 http://archive.ubuntu.com trusty-security/restricted Sources [2 061 B]
Get:69 http://archive.ubuntu.com trusty-security/universe Sources [25,2 kB]
Get:70 http://archive.ubuntu.com trusty-security/multiverse Sources [2 333 B]
Get:71 http://archive.ubuntu.com trusty-security/main amd64 Packages [292 kB]
Get:72 http://archive.ubuntu.com trusty-security/restricted amd64 Packages [8 875 B]
Get:73 http://archive.ubuntu.com trusty-security/universe amd64 Packages [107 kB]
Get:74 http://archive.ubuntu.com trusty-security/multiverse amd64 Packages [3 686 B]
Get:75 http://archive.ubuntu.com trusty-security/main i386 Packages [278 kB]
Get:76 http://archive.ubuntu.com trusty-security/restricted i386 Packages [8 846 B]
Get:77 http://archive.ubuntu.com trusty-security/universe i386 Packages [107 kB]
Get:78 http://archive.ubuntu.com trusty-security/multiverse i386 Packages [3 841 B]
Get:79 http://archive.ubuntu.com trusty-security/main Translation-en [149 kB]
Get:80 http://archive.ubuntu.com trusty-security/multiverse Translation-en [1 679 B]
Get:81 http://archive.ubuntu.com trusty-security/restricted Translation-en [2 266 B]
Get:82 http://archive.ubuntu.com trusty-security/universe Translation-en [60,2 kB]
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-Limit=100000000 && sudo apt-get dist-upgrade
Ign http://extras.ubuntu.com trusty InRelease
Ign http://archive.canonical.com trusty InRelease
Hit http://extras.ubuntu.com trusty Release.gpg
Hit http://archive.canonical.com trusty Release.gpg
Hit http://extras.ubuntu.com trusty Release
Hit http://archive.canonical.com trusty Release
Hit http://extras.ubuntu.com trusty/main Sources
Ign http://archive.ubuntu.com trusty InRelease
Hit http://archive.canonical.com trusty/partner amd64 Packages
Hit http://extras.ubuntu.com trusty/main amd64 Packages
Hit http://archive.canonical.com trusty/partner i386 Packages
Hit http://extras.ubuntu.com trusty/main i386 Packages
Ign http://archive.ubuntu.com trusty-updates InRelease
Ign http://archive.canonical.com trusty/partner Translation-en
Ign http://archive.ubuntu.com trusty-backports InRelease
Ign http://archive.ubuntu.com trusty-security InRelease
Hit http://archive.ubuntu.com trusty Release.gpg
Ign http://extras.ubuntu.com trusty/main Translation-en
Hit http://archive.ubuntu.com trusty-updates Release.gpg
Hit http://archive.ubuntu.com trusty-backports Release.gpg
Hit http://archive.ubuntu.com trusty-security Release.gpg
Hit http://archive.ubuntu.com trusty Release
Hit http://archive.ubuntu.com trusty-updates Release
Hit http://archive.ubuntu.com trusty-backports Release
Hit http://archive.ubuntu.com trusty-security Release
Hit http://archive.ubuntu.com trusty/main Sources
Hit http://archive.ubuntu.com trusty/restricted Sources
Hit http://archive.ubuntu.com trusty/universe Sources
Hit http://archive.ubuntu.com trusty/multiverse Sources
Hit http://archive.ubuntu.com trusty/main amd64 Packages
Hit http://archive.ubuntu.com trusty/restricted amd64 Packages
Hit http://archive.ubuntu.com trusty/universe amd64 Packages
Hit http://archive.ubuntu.com trusty/multiverse amd64 Packages
Hit http://archive.ubuntu.com trusty/main i386 Packages
Hit http://archive.ubuntu.com trusty/restricted i386 Packages
Hit http://archive.ubuntu.com trusty/universe i386 Packages
Hit http://archive.ubuntu.com trusty/multiverse i386 Packages
Hit http://archive.ubuntu.com trusty/main Translation-en
Hit http://archive.ubuntu.com trusty/multiverse Translation-en
Hit http://archive.ubuntu.com trusty/restricted Translation-en
Hit http://archive.ubuntu.com trusty/universe Translation-en
Hit http://archive.ubuntu.com trusty-updates/main Sources
Hit http://archive.ubuntu.com trusty-updates/restricted Sources
Hit http://archive.ubuntu.com trusty-updates/universe Sources
Hit http://archive.ubuntu.com trusty-updates/multiverse Sources
Hit http://archive.ubuntu.com trusty-updates/main amd64 Packages
Hit http://archive.ubuntu.com trusty-updates/restricted amd64 Packages
Hit http://archive.ubuntu.com trusty-updates/universe amd64 Packages
Hit http://archive.ubuntu.com trusty-updates/multiverse amd64 Packages
Hit http://archive.ubuntu.com trusty-updates/main i386 Packages
Hit http://archive.ubuntu.com trusty-updates/restricted i386 Packages
Hit http://archive.ubuntu.com trusty-updates/universe i386 Packages
Hit http://archive.ubuntu.com trusty-updates/multiverse i386 Packages
Hit http://archive.ubuntu.com trusty-updates/main Translation-en
Hit http://archive.ubuntu.com trusty-updates/multiverse Translation-en
Hit http://archive.ubuntu.com trusty-updates/restricted Translation-en
Hit http://archive.ubuntu.com trusty-updates/universe Translation-en
Hit http://archive.ubuntu.com trusty-backports/main Sources
Hit http://archive.ubuntu.com trusty-backports/restricted Sources
Hit http://archive.ubuntu.com trusty-backports/universe Sources
Hit http://archive.ubuntu.com trusty-backports/multiverse Sources
Hit http://archive.ubuntu.com trusty-backports/main amd64 Packages
Hit http://archive.ubuntu.com trusty-backports/restricted amd64 Packages
Hit http://archive.ubuntu.com trusty-backports/universe amd64 Packages
Hit http://archive.ubuntu.com trusty-backports/multiverse amd64 Packages
Hit http://archive.ubuntu.com trusty-backports/main i386 Packages
Hit http://archive.ubuntu.com trusty-backports/restricted i386 Packages
Hit http://archive.ubuntu.com trusty-backports/universe i386 Packages
Hit http://archive.ubuntu.com trusty-backports/multiverse i386 Packages
Hit http://archive.ubuntu.com trusty-backports/main Translation-en
Hit http://archive.ubuntu.com trusty-backports/multiverse Translation-en
Hit http://archive.ubuntu.com trusty-backports/restricted Translation-en
Hit http://archive.ubuntu.com trusty-backports/universe Translation-en
Hit http://archive.ubuntu.com trusty-security/main Sources
Hit http://archive.ubuntu.com trusty-security/restricted Sources
Hit http://archive.ubuntu.com trusty-security/universe Sources
Hit http://archive.ubuntu.com trusty-security/multiverse Sources
Hit http://archive.ubuntu.com trusty-security/main amd64 Packages
Hit http://archive.ubuntu.com trusty-security/restricted amd64 Packages
Hit http://archive.ubuntu.com trusty-security/universe amd64 Packages
Hit http://archive.ubuntu.com trusty-security/multiverse amd64 Packages
Hit http://archive.ubuntu.com trusty-security/main i386 Packages
Hit http://archive.ubuntu.com trusty-security/restricted i386 Packages
Hit http://archive.ubuntu.com trusty-security/universe i386 Packages
Hit http://archive.ubuntu.com trusty-security/multiverse i386 Packages
Hit http://archive.ubuntu.com trusty-security/main Translation-en
Hit http://archive.ubuntu.com trusty-security/multiverse Translation-en
Hit http://archive.ubuntu.com trusty-security/restricted Translation-en
Hit http://archive.ubuntu.com trusty-security/universe Translation-en
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/sources.list.d/me-davidsansome-clementine-trusty.list

     1 # deb http://ppa.launchpad.net/me-davidsansome/clementine/ubuntu trusty main
     2 # deb-src http://ppa.launchpad.net/me-davidsansome/clementine/ubuntu trusty main

/etc/apt/sources.list

     1 # deb cdrom:[Ubuntu 14.04.2 LTS _Trusty Tahr_ - Release amd64 (20150218.1)]/ trusty 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 trusty main restricted
     6 deb-src http://archive.ubuntu.com/ubuntu trusty main restricted
     7
     8 ## Major bug fix updates produced after the final release of the
     9 ## distribution.
    10 deb http://archive.ubuntu.com/ubuntu trusty-updates main restricted
    11 deb-src http://archive.ubuntu.com/ubuntu trusty-updates main restricted
    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://archive.ubuntu.com/ubuntu trusty universe
    17 deb-src http://archive.ubuntu.com/ubuntu trusty universe
    18 deb http://archive.ubuntu.com/ubuntu trusty-updates universe
    19 deb-src http://archive.ubuntu.com/ubuntu trusty-updates universe
    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://archive.ubuntu.com/ubuntu trusty multiverse
    27 deb-src http://archive.ubuntu.com/ubuntu trusty multiverse
    28 deb http://archive.ubuntu.com/ubuntu trusty-updates multiverse
    29 deb-src http://archive.ubuntu.com/ubuntu trusty-updates multiverse
    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://archive.ubuntu.com/ubuntu trusty-backports main restricted universe multiverse
    37 deb-src http://archive.ubuntu.com/ubuntu trusty-backports main restricted universe multiverse
    38
    39 deb http://archive.ubuntu.com/ubuntu trusty-security main restricted
    40 deb-src http://archive.ubuntu.com/ubuntu trusty-security main restricted
    41 deb http://archive.ubuntu.com/ubuntu trusty-security universe
    42 deb-src http://archive.ubuntu.com/ubuntu trusty-security universe
    43 deb http://archive.ubuntu.com/ubuntu trusty-security multiverse
    44 deb-src http://archive.ubuntu.com/ubuntu trusty-security multiverse
    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://archive.canonical.com/ubuntu trusty partner
    51 # deb-src http://archive.canonical.com/ubuntu trusty partner
    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://extras.ubuntu.com/ubuntu trusty main
    56 deb-src http://extras.ubuntu.com/ubuntu trusty main
mafia@mafia:~$

Revision history for this message
mafia (fabiansundberg27) said :
#4

Great fast support by the way :)

Revision history for this message
mafia (fabiansundberg27) said :
#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://extras.ubuntu.com trusty InRelease
Ign http://archive.canonical.com trusty InRelease
Hit http://extras.ubuntu.com trusty Release.gpg
Hit http://archive.canonical.com trusty Release.gpg
Hit http://extras.ubuntu.com trusty Release
Hit http://archive.canonical.com trusty Release
Hit http://extras.ubuntu.com trusty/main Sources
Ign http://archive.ubuntu.com trusty InRelease
Hit http://archive.canonical.com trusty/partner amd64 Packages
Hit http://extras.ubuntu.com trusty/main amd64 Packages
Hit http://archive.canonical.com trusty/partner i386 Packages
Hit http://extras.ubuntu.com trusty/main i386 Packages
Ign http://archive.ubuntu.com trusty-updates InRelease
Hit http://archive.canonical.com trusty/partner Translation-en
Ign http://archive.ubuntu.com trusty-backports InRelease
Ign http://archive.ubuntu.com trusty-security InRelease
Ign http://extras.ubuntu.com trusty/main Translation-en_US
Hit http://archive.ubuntu.com trusty Release.gpg
Ign http://extras.ubuntu.com trusty/main Translation-en
Get:1 http://archive.ubuntu.com trusty-updates Release.gpg [933 B]
Get:2 http://archive.ubuntu.com trusty-backports Release.gpg [933 B]
Get:3 http://archive.ubuntu.com trusty-security Release.gpg [933 B]
Hit http://archive.ubuntu.com trusty Release
Get:4 http://archive.ubuntu.com trusty-updates Release [63,5 kB]
Get:5 http://archive.ubuntu.com trusty-backports Release [63,5 kB]
Get:6 http://archive.ubuntu.com trusty-security Release [63,5 kB]
Hit http://archive.ubuntu.com trusty/main Sources
Hit http://archive.ubuntu.com trusty/restricted Sources
Hit http://archive.ubuntu.com trusty/universe Sources
Hit http://archive.ubuntu.com trusty/multiverse Sources
Hit http://archive.ubuntu.com trusty/main amd64 Packages
Hit http://archive.ubuntu.com trusty/restricted amd64 Packages
Hit http://archive.ubuntu.com trusty/universe amd64 Packages
Hit http://archive.ubuntu.com trusty/multiverse amd64 Packages
Hit http://archive.ubuntu.com trusty/main i386 Packages
Hit http://archive.ubuntu.com trusty/restricted i386 Packages
Hit http://archive.ubuntu.com trusty/universe i386 Packages
Hit http://archive.ubuntu.com trusty/multiverse i386 Packages
Hit http://archive.ubuntu.com trusty/main Translation-en
Hit http://archive.ubuntu.com trusty/multiverse Translation-en
Hit http://archive.ubuntu.com trusty/restricted Translation-en
Hit http://archive.ubuntu.com trusty/universe Translation-en
Get:7 http://archive.ubuntu.com trusty-updates/main Sources [207 kB]
Get:8 http://archive.ubuntu.com trusty-updates/restricted Sources [3 433 B]
Get:9 http://archive.ubuntu.com trusty-updates/universe Sources [119 kB]
Get:10 http://archive.ubuntu.com trusty-updates/multiverse Sources [5 143 B]
Get:11 http://archive.ubuntu.com trusty-updates/main amd64 Packages [536 kB]
Get:12 http://archive.ubuntu.com trusty-updates/restricted amd64 Packages [11,8 kB]
Get:13 http://archive.ubuntu.com trusty-updates/universe amd64 Packages [285 kB]
Get:14 http://archive.ubuntu.com trusty-updates/multiverse amd64 Packages [12,0 kB]
Get:15 http://archive.ubuntu.com trusty-updates/main i386 Packages [523 kB]
Get:16 http://archive.ubuntu.com trusty-updates/restricted i386 Packages [11,8 kB]
Get:17 http://archive.ubuntu.com trusty-updates/universe i386 Packages [286 kB]
Get:18 http://archive.ubuntu.com trusty-updates/multiverse i386 Packages [12,1 kB]
Hit http://archive.ubuntu.com trusty-updates/main Translation-en
Hit http://archive.ubuntu.com trusty-updates/multiverse Translation-en
Hit http://archive.ubuntu.com trusty-updates/restricted Translation-en
Hit http://archive.ubuntu.com trusty-updates/universe Translation-en
Get:19 http://archive.ubuntu.com trusty-backports/main Sources [5 851 B]
Get:20 http://archive.ubuntu.com trusty-backports/restricted Sources [28 B]
Get:21 http://archive.ubuntu.com trusty-backports/universe Sources [27,0 kB]
Get:22 http://archive.ubuntu.com trusty-backports/multiverse Sources [1 898 B]
Get:23 http://archive.ubuntu.com trusty-backports/main amd64 Packages [6 256 B]
Get:24 http://archive.ubuntu.com trusty-backports/restricted amd64 Packages [28 B]
Get:25 http://archive.ubuntu.com trusty-backports/universe amd64 Packages [30,2 kB]
Get:26 http://archive.ubuntu.com trusty-backports/multiverse amd64 Packages [1 245 B]
Get:27 http://archive.ubuntu.com trusty-backports/main i386 Packages [6 285 B]
Get:28 http://archive.ubuntu.com trusty-backports/restricted i386 Packages [28 B]
Get:29 http://archive.ubuntu.com trusty-backports/universe i386 Packages [30,3 kB]
Get:30 http://archive.ubuntu.com trusty-backports/multiverse i386 Packages [1 249 B]
Hit http://archive.ubuntu.com trusty-backports/main Translation-en
Hit http://archive.ubuntu.com trusty-backports/multiverse Translation-en
Hit http://archive.ubuntu.com trusty-backports/restricted Translation-en
Hit http://archive.ubuntu.com trusty-backports/universe Translation-en
Get:31 http://archive.ubuntu.com trusty-security/main Sources [85,2 kB]
Get:32 http://archive.ubuntu.com trusty-security/restricted Sources [2 061 B]
Get:33 http://archive.ubuntu.com trusty-security/universe Sources [25,2 kB]
Get:34 http://archive.ubuntu.com trusty-security/multiverse Sources [2 333 B]
Get:35 http://archive.ubuntu.com trusty-security/main amd64 Packages [292 kB]
Get:36 http://archive.ubuntu.com trusty-security/restricted amd64 Packages [8 875 B]
Get:37 http://archive.ubuntu.com trusty-security/universe amd64 Packages [107 kB]
Get:38 http://archive.ubuntu.com trusty-security/multiverse amd64 Packages [3 686 B]
Get:39 http://archive.ubuntu.com trusty-security/main i386 Packages [278 kB]
Get:40 http://archive.ubuntu.com trusty-security/restricted i386 Packages [8 846 B]
Get:41 http://archive.ubuntu.com trusty-security/universe i386 Packages [107 kB]
Get:42 http://archive.ubuntu.com trusty-security/multiverse i386 Packages [3 841 B]
Hit http://archive.ubuntu.com trusty-security/main Translation-en
Hit http://archive.ubuntu.com trusty-security/multiverse Translation-en
Hit http://archive.ubuntu.com trusty-security/restricted Translation-en
Hit http://archive.ubuntu.com trusty-security/universe Translation-en
Ign http://archive.ubuntu.com trusty/main Translation-en_US
Ign http://archive.ubuntu.com trusty/multiverse Translation-en_US
Ign http://archive.ubuntu.com trusty/restricted Translation-en_US
Ign http://archive.ubuntu.com trusty/universe Translation-en_US
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://archive.ubuntu.com/ubuntu/ trusty/main nano amd64 2.2.6-1ubuntu1 [194 kB]
Fetched 194 kB in 0s (258 kB/s)
(Reading database ... 205060 files and directories currently installed.)
Preparing to unpack .../nano_2.2.6-1ubuntu1_amd64.deb ...
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
Manfred Hampl (m-hampl) said :
#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
mafia (fabiansundberg27) said :
#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
actionparsnip (andrew-woodhead666) said :
#8

What is the output of:

file /etc/init.d/avgd

Thanks

Revision history for this message
mafia (fabiansundberg27) said :
#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/av/etc/init.d/avgd.all'

Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#10

Please try the last remark by John0278 (jjg6908) here:

https://answers.launchpad.net/ubuntu/+question/4392

So run this Terminal command instead:

sudo dpkg --remove --force-all avg2013flx

Revision history for this message
mafia (fabiansundberg27) said :
#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
Best Mark Rijckenberg (markrijckenberg) said :
#12

OK, run these Terminal commands:

sudo ln -s /bin/true /etc/init.d/avgd

sudo mv /var/lib/dpkg/info/avg2013flx.postrm /var/lib/dpkg/info/avg2013flx.postrm.bak

sudo mv /var/lib/dpkg/info/avg2013flx.prerm /var/lib/dpkg/info/avg2013flx.prerm.bak

sudo dpkg --remove --force-all avg2013flx

Source: http://ubuntuforums.org/archive/index.php/t-2186126.html

Revision history for this message
mafia (fabiansundberg27) said :
#13

Thanks Mark Rijckenberg, that solved my question.