Unable to update ubuntu 14.04

Asked by Tushar

tushar@tushar-HP-Pavilion-g6-Notebook-PC:~$ ubuntu-support-status
Support status summary of 'tushar-HP-Pavilion-g6-Notebook-PC':

You have 2451 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
tushar@tushar-HP-Pavilion-g6-Notebook-PC:~$ cat /etc/dpkg/dpkg.cfg.d/multiarch
cat: /etc/dpkg/dpkg.cfg.d/multiarch: No such file or directory
tushar@tushar-HP-Pavilion-g6-Notebook-PC:~$ dpkg --print-foreign-architectures
i386
tushar@tushar-HP-Pavilion-g6-Notebook-PC:~$ sudo grep -R proxy /etc/apt/*
[sudo] password for tushar:
/etc/apt/apt.conf:Acquire::http::proxy "http://192.168.2.255:8080/";
/etc/apt/apt.conf:Acquire::https::proxy "https://192.168.2.255:0/";
/etc/apt/apt.conf:Acquire::ftp::proxy "ftp://192.168.2.255:0/";
/etc/apt/apt.conf:Acquire::socks::proxy "socks://192.168.2.255:0/";
tushar@tushar-HP-Pavilion-g6-Notebook-PC:~$ grep proxy /etc/environment
http_proxy="http://192.168.2.255:8080/"
https_proxy="https://192.168.2.255:0/"
ftp_proxy="ftp://192.168.2.255:0/"
socks_proxy="socks://192.168.2.255:0/"
tushar@tushar-HP-Pavilion-g6-Notebook-PC:~$ echo $http_proxy
http://192.168.2.255:8080/
tushar@tushar-HP-Pavilion-g6-Notebook-PC:~$ echo $ftp_proxy
ftp://192.168.2.255:0/
tushar@tushar-HP-Pavilion-g6-Notebook-PC:~$ grep proxy /etc/bash.bashrc
tushar@tushar-HP-Pavilion-g6-Notebook-PC:~$ grep proxy ~/.bashrc
tushar@tushar-HP-Pavilion-g6-Notebook-PC:~$ cat /etc/apt/apt.conf
Acquire::http::proxy "http://192.168.2.255:8080/";
Acquire::https::proxy "https://192.168.2.255:0/";
Acquire::ftp::proxy "ftp://192.168.2.255:0/";
Acquire::socks::proxy "socks://192.168.2.255:0/";
tushar@tushar-HP-Pavilion-g6-Notebook-PC:~$ sudo fuser -vvv /var/lib/dpkg/lock
tushar@tushar-HP-Pavilion-g6-Notebook-PC:~$ sudo fuser -vvv /var/cache/apt/archives/lock
tushar@tushar-HP-Pavilion-g6-Notebook-PC:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04 LTS"
tushar@tushar-HP-Pavilion-g6-Notebook-PC:~$ uname -a
Linux tushar-HP-Pavilion-g6-Notebook-PC 3.13.0-30-generic #55-Ubuntu SMP Fri Jul 4 21:40:53 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
tushar@tushar-HP-Pavilion-g6-Notebook-PC:~$ sudo rm /var/lib/apt/lists/lock
tushar@tushar-HP-Pavilion-g6-Notebook-PC:~$ sudo rm /var/cache/apt/archives/lock
tushar@tushar-HP-Pavilion-g6-Notebook-PC:~$ sudo rm /var/lib/dpkg/lock
tushar@tushar-HP-Pavilion-g6-Notebook-PC:~$ sudo cp -arf /var/lib/dpkg /var/lib/dpkg.backup
sudo mv /var/lib/dpkg/status /var/lib/dpkg/status-bad

sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status || sudo cp /var/backups/apt.extended_states.0 /var/lib/dpkg/status
sudo mv /var/lib/dpkg/available /var/lib/dpkg/available-bad
sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/available
sudo rm -rf /var/lib/dpkg/updates/*
sudo rm -rf /var/lib/apt/lists
sudo rm /var/cache/apt/*.bin
sudo mkdir /var/lib/apt/lists
sudo mkdir /var/lib/apt/lists/partial
LANG=C;sudo apt-get clean
tushar@tushar-HP-Pavilion-g6-Notebook-PC:~$ sudo mv /var/lib/dpkg/status /var/lib/dpkg/status-bad
tushar@tushar-HP-Pavilion-g6-Notebook-PC:~$
tushar@tushar-HP-Pavilion-g6-Notebook-PC:~$ sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status || sudo cp /var/backups/apt.extended_states.0 /var/lib/dpkg/status
tushar@tushar-HP-Pavilion-g6-Notebook-PC:~$ sudo mv /var/lib/dpkg/available /var/lib/dpkg/available-bad
tushar@tushar-HP-Pavilion-g6-Notebook-PC:~$ sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/available
tushar@tushar-HP-Pavilion-g6-Notebook-PC:~$ sudo rm -rf /var/lib/dpkg/updates/*
tushar@tushar-HP-Pavilion-g6-Notebook-PC:~$ sudo rm -rf /var/lib/apt/lists
tushar@tushar-HP-Pavilion-g6-Notebook-PC:~$ sudo rm /var/cache/apt/*.bin
tushar@tushar-HP-Pavilion-g6-Notebook-PC:~$ sudo mkdir /var/lib/apt/lists
tushar@tushar-HP-Pavilion-g6-Notebook-PC:~$ sudo mkdir /var/lib/apt/lists/partial
tushar@tushar-HP-Pavilion-g6-Notebook-PC:~$ LANG=C;sudo apt-get clean
tushar@tushar-HP-Pavilion-g6-Notebook-PC:~$ LANG=C;sudo apt-get autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
tushar@tushar-HP-Pavilion-g6-Notebook-PC:~$ LANG=C;sudo apt-get --purge autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  kde-l10n-engb*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 9875 kB disk space will be freed.
Do you want to continue? [Y/n] y
dpkg: warning: files list file for package 'dosfstools' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'ubuntu-standard' missing; assuming package has no files currently installed
(Reading database ... 338422 files and directories currently installed.)
Removing kde-l10n-engb (4:4.13.0-0ubuntu1) ...
tushar@tushar-HP-Pavilion-g6-Notebook-PC:~$ LANG=C;sudo apt-get --fix-missing update -o APT::Cache-Limit=100000000
Ign cdrom://Ubuntu 14.04 LTS _Trusty Tahr_ - Release amd64 (20140417) trusty InRelease
Ign cdrom://Ubuntu 14.04 LTS _Trusty Tahr_ - Release amd64 (20140417) trusty Release.gpg
Ign cdrom://Ubuntu 14.04 LTS _Trusty Tahr_ - Release amd64 (20140417) trusty Release
Err cdrom://Ubuntu 14.04 LTS _Trusty Tahr_ - Release amd64 (20140417) trusty/main amd64 Packages
  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Err cdrom://Ubuntu 14.04 LTS _Trusty Tahr_ - Release amd64 (20140417) trusty/restricted amd64 Packages
  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Err cdrom://Ubuntu 14.04 LTS _Trusty Tahr_ - Release amd64 (20140417) trusty/main i386 Packages
  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Err cdrom://Ubuntu 14.04 LTS _Trusty Tahr_ - Release amd64 (20140417) trusty/restricted i386 Packages
  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Ign cdrom://Ubuntu 14.04 LTS _Trusty Tahr_ - Release amd64 (20140417) trusty/main Translation-en
Ign cdrom://Ubuntu 14.04 LTS _Trusty Tahr_ - Release amd64 (20140417) trusty/restricted Translation-en
47% [Connecting to 192.168.2.255 (192.168.2.255)] [Connecting to 192.168.2.255
47% [Connecting to 192.168.2.255 (192.168.2.255)] [Connecting to 192.168.2.255 sudo dpkg --configure -a
Err http://dl.google.com stable InRelease ^[[3~

Err http://dl.google.com stable Release.gpg
  Unable to connect to 192.168.2.255:8080:
Err http://archive.canonical.com trusty InRelease

Err http://archive.canonical.com trusty Release.gpg
  Unable to connect to 192.168.2.255:8080:
Err http://archive.ubuntu.com trusty InRelease

Err http://archive.ubuntu.com trusty-updates InRelease

Err http://archive.ubuntu.com trusty-security InRelease

Err http://archive.ubuntu.com trusty Release.gpg
  Unable to connect to 192.168.2.255:8080:
Err http://archive.ubuntu.com trusty-updates Release.gpg
  Unable to connect to 192.168.2.255:8080:
Err http://archive.ubuntu.com trusty-security Release.gpg
  Unable to connect to 192.168.2.255:8080:
Reading package lists... Done
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/InRelease

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-updates/InRelease

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-security/InRelease

W: Failed to fetch http://archive.canonical.com/ubuntu/dists/trusty/InRelease

W: Failed to fetch http://dl.google.com/linux/talkplugin/deb/dists/stable/InRelease

W: Failed to fetch cdrom://Ubuntu 14.04 LTS _Trusty Tahr_ - Release amd64 (20140417)/dists/trusty/main/binary-amd64/Packages Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs

W: Failed to fetch cdrom://Ubuntu 14.04 LTS _Trusty Tahr_ - Release amd64 (20140417)/dists/trusty/restricted/binary-amd64/Packages Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs

W: Failed to fetch cdrom://Ubuntu 14.04 LTS _Trusty Tahr_ - Release amd64 (20140417)/dists/trusty/main/binary-i386/Packages Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs

W: Failed to fetch cdrom://Ubuntu 14.04 LTS _Trusty Tahr_ - Release amd64 (20140417)/dists/trusty/restricted/binary-i386/Packages Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs

W: Failed to fetch http://dl.google.com/linux/talkplugin/deb/dists/stable/Release.gpg Unable to connect to 192.168.2.255:8080:

W: Failed to fetch http://archive.canonical.com/ubuntu/dists/trusty/Release.gpg Unable to connect to 192.168.2.255:8080:

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/Release.gpg Unable to connect to 192.168.2.255:8080:

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-updates/Release.gpg Unable to connect to 192.168.2.255:8080:

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-security/Release.gpg Unable to connect to 192.168.2.255:8080:

W: Some index files failed to download. They have been ignored, or old ones used instead.
tushar@tushar-HP-Pavilion-g6-Notebook-PC:~$
tushar@tushar-HP-Pavilion-g6-Notebook-PC:~$ sudo dpkg --configure -a
tushar@tushar-HP-Pavilion-g6-Notebook-PC:~$ sudo dpkg --clear-avail
tushar@tushar-HP-Pavilion-g6-Notebook-PC:~$ 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.
tushar@tushar-HP-Pavilion-g6-Notebook-PC:~$ 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.
tushar@tushar-HP-Pavilion-g6-Notebook-PC:~$ LANG=C;sudo apt-get update -o APT::Cache-Limit=100000000 && sudo apt-get dist-upgrade
Ign cdrom://Ubuntu 14.04 LTS _Trusty Tahr_ - Release amd64 (20140417) trusty InRelease
Ign cdrom://Ubuntu 14.04 LTS _Trusty Tahr_ - Release amd64 (20140417) trusty Release.gpg
Ign cdrom://Ubuntu 14.04 LTS _Trusty Tahr_ - Release amd64 (20140417) trusty Release
Err cdrom://Ubuntu 14.04 LTS _Trusty Tahr_ - Release amd64 (20140417) trusty/main amd64 Packages
  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Err cdrom://Ubuntu 14.04 LTS _Trusty Tahr_ - Release amd64 (20140417) trusty/restricted amd64 Packages
  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Err cdrom://Ubuntu 14.04 LTS _Trusty Tahr_ - Release amd64 (20140417) trusty/main i386 Packages
  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Err cdrom://Ubuntu 14.04 LTS _Trusty Tahr_ - Release amd64 (20140417) trusty/restricted i386 Packages
  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Ign cdrom://Ubuntu 14.04 LTS _Trusty Tahr_ - Release amd64 (20140417) trusty/main Translation-en
Ign cdrom://Ubuntu 14.04 LTS _Trusty Tahr_ - Release amd64 (20140417) trusty/restricted Translation-en
Err http://archive.ubuntu.com trusty InRelease

Err http://archive.ubuntu.com trusty-updates InRelease

Err http://archive.ubuntu.com trusty-security InRelease

Err http://archive.ubuntu.com trusty Release.gpg
  Unable to connect to 192.168.2.255:8080:
Err http://archive.ubuntu.com trusty-updates Release.gpg
  Unable to connect to 192.168.2.255:8080:
Err http://archive.ubuntu.com trusty-security Release.gpg
  Unable to connect to 192.168.2.255:8080:
Err http://archive.canonical.com trusty InRelease

Err http://archive.canonical.com trusty Release.gpg
  Unable to connect to 192.168.2.255:8080:
Err http://dl.google.com stable InRelease

Err http://dl.google.com stable Release.gpg
  Unable to connect to 192.168.2.255:8080:
Reading package lists... Done
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/InRelease

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-updates/InRelease

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-security/InRelease

W: Failed to fetch http://archive.canonical.com/ubuntu/dists/trusty/InRelease

W: Failed to fetch http://dl.google.com/linux/talkplugin/deb/dists/stable/InRelease

W: Failed to fetch cdrom://Ubuntu 14.04 LTS _Trusty Tahr_ - Release amd64 (20140417)/dists/trusty/main/binary-amd64/Packages Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs

W: Failed to fetch cdrom://Ubuntu 14.04 LTS _Trusty Tahr_ - Release amd64 (20140417)/dists/trusty/restricted/binary-amd64/Packages Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs

W: Failed to fetch cdrom://Ubuntu 14.04 LTS _Trusty Tahr_ - Release amd64 (20140417)/dists/trusty/main/binary-i386/Packages Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs

W: Failed to fetch cdrom://Ubuntu 14.04 LTS _Trusty Tahr_ - Release amd64 (20140417)/dists/trusty/restricted/binary-i386/Packages Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/Release.gpg Unable to connect to 192.168.2.255:8080:

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-updates/Release.gpg Unable to connect to 192.168.2.255:8080:

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-security/Release.gpg Unable to connect to 192.168.2.255:8080:

W: Failed to fetch http://archive.canonical.com/ubuntu/dists/trusty/Release.gpg Unable to connect to 192.168.2.255:8080:

W: Failed to fetch http://dl.google.com/linux/talkplugin/deb/dists/stable/Release.gpg Unable to connect to 192.168.2.255:8080:

W: Some index files failed to download. They have been ignored, or old ones used instead.
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.
tushar@tushar-HP-Pavilion-g6-Notebook-PC:~$ find /etc/apt -name '*.list' -exec bash -c 'echo -e "\n$1\n"; cat -n "$1"' _ '{}' \;

/etc/apt/sources.list

     1 deb cdrom:[Ubuntu 14.04 LTS _Trusty Tahr_ - Release amd64 (20140417)]/ 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
    37 deb http://archive.ubuntu.com/ubuntu trusty-security main restricted
    38 deb-src http://archive.ubuntu.com/ubuntu trusty-security main restricted
    39 deb http://archive.ubuntu.com/ubuntu trusty-security universe
    40 deb-src http://archive.ubuntu.com/ubuntu trusty-security universe
    41 deb http://archive.ubuntu.com/ubuntu trusty-security multiverse
    42 deb-src http://archive.ubuntu.com/ubuntu trusty-security multiverse
    43
    44 ## Uncomment the following two lines to add software from Canonical's
    45 ## 'partner' repository.
    46 ## This software is not part of Ubuntu, but is offered by Canonical and the
    47 ## respective vendors as a service to Ubuntu users.
    48 deb http://archive.canonical.com/ubuntu trusty partner
    49 deb-src http://archive.canonical.com/ubuntu trusty partner
    50
    51 ## This software is not part of Ubuntu, but is offered by third-party
    52 ## developers who want to ship their latest software.
    53 # deb http://extras.ubuntu.com/ubuntu trusty main
    54 # deb-src http://extras.ubuntu.com/ubuntu trusty main

/etc/apt/sources.list.d/google-talkplugin.list

     1 ### THIS FILE IS AUTOMATICALLY CONFIGURED ###
     2 # You may comment out this entry, but any other modifications may be lost.
     3 deb http://dl.google.com/linux/talkplugin/deb/ stable main

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Solved by:
Thomas Krüger
Solved:
Last query:
Last reply:
Revision history for this message
Best Thomas Krüger (thkrueger) said :
#1

You have configured a proxy server which is not working.
Deactivate your proxy in System Settings → Network or get the proxy working again.

Revision history for this message
Tushar (tushar2manu) said :
#2

Thanks Thomas Krüger, that solved my question.