i am connected to the internet but a when i try to download from ubuntu software centre it says no internet connection. please can someone help? thanks

Asked by luke

please can someone help

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu software-center Edit question
Assignee:
No assignee Edit question
Solved by:
Warren Hill
Solved:
Last query:
Last reply:
Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#1

Please send us the full Terminal output from step 5 in the following procedure:

https://help.ubuntu.com/community/PackageManagerTroubleshootingProcedure

Please post output here:

https://answers.launchpad.net/ubuntu/+source/software-center/+question/228767

Revision history for this message
Warren Hill (warren-hill) said :
#2

Can you access the Web OK with a browser.

if not open a terminal CTRL+ALT+T and give us the output of

------------------------------------------------------------------------------------------------------------------------------------------------
lsb_release; uname -a; ifconfig; cat /etc/network/interfaces; route -n; ping -c5 8.8.8.8
-----------------------------------------------------------------------------------------------------------------------------------------------

If you can access the Web do you connect via proxy server?

If you do have you configured apt to use it ? We can tell you how to.

If its already configured or you don't use a proxy then follow the instructions here:
https://help.ubuntu.com/community/PackageManagerTroubleshootingProcedure

except at step 6 post to this link
https://answers.launchpad.net/ubuntu/+source/software-center/+question/228767

Not the one given as the link in the procedure will create a new question instead of providing it in this one.

Revision history for this message
luke (luke-richards-1991) said :
#3

motocrossluke@motocrossluke-P23G:~$ sudo grep -R proxy /etc/apt/*
[sudo] password for motocrossluke:
Sorry, try again.
[sudo] password for motocrossluke:
Sorry, try again.
[sudo] password for motocrossluke:
motocrossluke@motocrossluke-P23G:~$ grep proxy /etc/environment
motocrossluke@motocrossluke-P23G:~$ echo $http_proxy

motocrossluke@motocrossluke-P23G:~$ echo $ftp_proxy

motocrossluke@motocrossluke-P23G:~$ grep proxy /etc/bash.bashrc
motocrossluke@motocrossluke-P23G:~$ grep proxy ~/.bashrc
motocrossluke@motocrossluke-P23G:~$ cat /etc/apt/apt.conf
cat: /etc/apt/apt.conf: No such file or directory
motocrossluke@motocrossluke-P23G:~$ sudo fuser -vvv /var/lib/dpkg/lock
motocrossluke@motocrossluke-P23G:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=11.04
DISTRIB_CODENAME=natty
DISTRIB_DESCRIPTION="Ubuntu 11.04"
motocrossluke@motocrossluke-P23G:~$ uname -a
Linux motocrossluke-P23G 2.6.38-13-generic-pae #57-Ubuntu SMP Mon Mar 5 20:00:10 UTC 2012 i686 i686 i386 GNU/Linux
motocrossluke@motocrossluke-P23G:~$ sudo rm /var/lib/apt/lists/lock
motocrossluke@motocrossluke-P23G:~$ sudo rm /var/lib/dpkg/lock
motocrossluke@motocrossluke-P23G:~$ 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
LANG=C;sudo apt-get autoclean
LANG=C;sudo apt-get --purge autoremove
LANG=C;sudo apt-get --fix-missing update -o APT::Cache-Limit=100000000
sudo dpkg --configure -a
sudo dpkg --clear-avail
motocrossluke@motocrossluke-P23G:~$ sudo mv /var/lib/dpkg/status /var/lib/dpkg/status-bad
motocrossluke@motocrossluke-P23G:~$ sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status || sudo cp /var/backups/apt.extended_states.0 /var/lib/dpkg/status
motocrossluke@motocrossluke-P23G:~$ sudo mv /var/lib/dpkg/available /var/lib/dpkg/available-bad
motocrossluke@motocrossluke-P23G:~$ sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/available
motocrossluke@motocrossluke-P23G:~$ sudo rm -rf /var/lib/dpkg/updates/*
motocrossluke@motocrossluke-P23G:~$ sudo rm -rf /var/lib/apt/lists
motocrossluke@motocrossluke-P23G:~$ sudo rm /var/cache/apt/*.bin
motocrossluke@motocrossluke-P23G:~$ sudo mkdir /var/lib/apt/lists
motocrossluke@motocrossluke-P23G:~$ sudo mkdir /var/lib/apt/lists/partial
motocrossluke@motocrossluke-P23G:~$ LANG=C;sudo apt-get clean
motocrossluke@motocrossluke-P23G:~$ LANG=C;sudo apt-get autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
motocrossluke@motocrossluke-P23G:~$ 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.
motocrossluke@motocrossluke-P23G:~$ LANG=C;sudo apt-get --fix-missing update -o APT::Cache-Limit=100000000
Ign cdrom://Ubuntu 10.10 _Maverick Meerkat_ - Release i386 (20101007) maverick InRelease
Ign cdrom://Ubuntu 10.10 _Maverick Meerkat_ - Release i386 (20101007) maverick Release.gpg
Ign cdrom://Ubuntu 10.10 _Maverick Meerkat_ - Release i386 (20101007) maverick Release
Ign cdrom://Ubuntu 10.10 _Maverick Meerkat_ - Release i386 (20101007) maverick/main TranslationIndex
Ign cdrom://Ubuntu 10.10 _Maverick Meerkat_ - Release i386 (20101007) maverick/restricted TranslationIndex
Err cdrom://Ubuntu 10.10 _Maverick Meerkat_ - Release i386 (20101007) maverick/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 10.10 _Maverick Meerkat_ - Release i386 (20101007) maverick/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 10.10 _Maverick Meerkat_ - Release i386 (20101007) maverick/main Translation-en
Ign cdrom://Ubuntu 10.10 _Maverick Meerkat_ - Release i386 (20101007) maverick/restricted Translation-en
Ign http://archive.ubuntu.com natty InRelease
Ign http://archive.ubuntu.com natty-updates InRelease
Ign http://archive.ubuntu.com natty-security InRelease
Get:1 http://archive.ubuntu.com natty Release.gpg [198 B]
Get:2 http://archive.ubuntu.com natty-updates Release.gpg [198 B]
Get:3 http://archive.ubuntu.com natty-security Release.gpg [198 B]
Get:4 http://archive.ubuntu.com natty Release [39.8 kB]
Get:5 http://archive.ubuntu.com natty-updates Release [39.8 kB]
Ign http://archive.ubuntu.com natty Release
Ign http://archive.ubuntu.com natty-updates Release
Get:6 http://archive.ubuntu.com natty-security Release [39.8 kB]
Get:7 http://archive.ubuntu.com natty/main i386 Packages [1550 kB]
Ign http://archive.ubuntu.com natty-security Release
Get:8 http://archive.ubuntu.com natty/restricted i386 Packages [8986 B]
Get:9 http://archive.ubuntu.com natty/universe i386 Packages [6021 kB]
Get:10 http://archive.ubuntu.com natty/multiverse i386 Packages [183 kB]
Ign http://archive.ubuntu.com natty/main TranslationIndex
Ign http://archive.ubuntu.com natty/multiverse TranslationIndex
Ign http://archive.ubuntu.com natty/restricted TranslationIndex
Ign http://archive.ubuntu.com natty/universe TranslationIndex
Get:11 http://archive.ubuntu.com natty-updates/main i386 Packages [503 kB]
Get:12 http://archive.ubuntu.com natty-updates/restricted i386 Packages [6257 B]
Get:13 http://archive.ubuntu.com natty-updates/universe i386 Packages [166 kB]
Get:14 http://archive.ubuntu.com natty-updates/multiverse i386 Packages [6380 B]
Ign http://archive.ubuntu.com natty-updates/main TranslationIndex
Ign http://archive.ubuntu.com natty-updates/multiverse TranslationIndex
Ign http://archive.ubuntu.com natty-updates/restricted TranslationIndex
Ign http://archive.ubuntu.com natty-updates/universe TranslationIndex
Get:15 http://archive.ubuntu.com natty-security/main i386 Packages [371 kB]
Get:16 http://archive.ubuntu.com natty-security/restricted i386 Packages [4822 B]
Get:17 http://archive.ubuntu.com natty-security/universe i386 Packages [105 kB]
Get:18 http://archive.ubuntu.com natty-security/multiverse i386 Packages [3564 B]
Ign http://archive.ubuntu.com natty-security/main TranslationIndex
Ign http://archive.ubuntu.com natty-security/multiverse TranslationIndex
Ign http://archive.ubuntu.com natty-security/restricted TranslationIndex
Ign http://archive.ubuntu.com natty-security/universe TranslationIndex
Ign http://archive.ubuntu.com natty/main Translation-en
Ign http://archive.ubuntu.com natty/multiverse Translation-en
Ign http://archive.ubuntu.com natty/restricted Translation-en
Ign http://archive.ubuntu.com natty/universe Translation-en
Ign http://archive.ubuntu.com natty-updates/main Translation-en
Ign http://archive.ubuntu.com natty-updates/multiverse Translation-en
Ign http://archive.ubuntu.com natty-updates/restricted Translation-en
Ign http://archive.ubuntu.com natty-updates/universe Translation-en
Ign http://archive.ubuntu.com natty-security/main Translation-en
Ign http://archive.ubuntu.com natty-security/multiverse Translation-en
Ign http://archive.ubuntu.com natty-security/restricted Translation-en
Ign http://archive.ubuntu.com natty-security/universe Translation-en
99% [9 Packages bzip2 0 B] 1484 kB/s 0sLFetched 9048 kB in 11s (765 kB/s)
W: GPG error: http://archive.ubuntu.com natty Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5
W: GPG error: http://archive.ubuntu.com natty-updates Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5
W: GPG error: http://archive.ubuntu.com natty-security Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5
W: Failed to fetch cdrom://Ubuntu 10.10 _Maverick Meerkat_ - Release i386 (20101007)/dists/maverick/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 10.10 _Maverick Meerkat_ - Release i386 (20101007)/dists/maverick/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

E: Some index files failed to download. They have been ignored, or old ones used instead.
motocrossluke@motocrossluke-P23G:~$ sudo dpkg --configure -a
motocrossluke@motocrossluke-P23G:~$ sudo dpkg --clear-avail
motocrossluke@motocrossluke-P23G:~$ 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 181 not upgraded.
motocrossluke@motocrossluke-P23G:~$ 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 181 not upgraded.
motocrossluke@motocrossluke-P23G:~$ 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 181 not upgraded.
motocrossluke@motocrossluke-P23G:~$ LANG=C;sudo apt-get update -o APT::Cache-Limit=100000000 && sudo apt-get dist-upgrade
Ign cdrom://Ubuntu 10.10 _Maverick Meerkat_ - Release i386 (20101007) maverick InRelease
Ign cdrom://Ubuntu 10.10 _Maverick Meerkat_ - Release i386 (20101007) maverick Release.gpg
Ign cdrom://Ubuntu 10.10 _Maverick Meerkat_ - Release i386 (20101007) maverick Release
Ign cdrom://Ubuntu 10.10 _Maverick Meerkat_ - Release i386 (20101007) maverick/main TranslationIndex
Ign cdrom://Ubuntu 10.10 _Maverick Meerkat_ - Release i386 (20101007) maverick/restricted TranslationIndex
Err cdrom://Ubuntu 10.10 _Maverick Meerkat_ - Release i386 (20101007) maverick/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 10.10 _Maverick Meerkat_ - Release i386 (20101007) maverick/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 10.10 _Maverick Meerkat_ - Release i386 (20101007) maverick/main Translation-en
Ign cdrom://Ubuntu 10.10 _Maverick Meerkat_ - Release i386 (20101007) maverick/restricted Translation-en
Ign http://archive.ubuntu.com natty InRelease
Ign http://archive.ubuntu.com natty-updates InRelease
Ign http://archive.ubuntu.com natty-security InRelease
Get:1 http://archive.ubuntu.com natty Release.gpg [198 B]
Get:2 http://archive.ubuntu.com natty-updates Release.gpg [198 B]
Get:3 http://archive.ubuntu.com natty-security Release.gpg [198 B]
Get:4 http://archive.ubuntu.com natty Release [39.8 kB]
Get:5 http://archive.ubuntu.com natty-updates Release [39.8 kB]
Ign http://archive.ubuntu.com natty Release
Ign http://archive.ubuntu.com natty-updates Release
Get:6 http://archive.ubuntu.com natty-security Release [39.8 kB]
Ign http://archive.ubuntu.com natty-security Release
Ign http://archive.ubuntu.com natty/main i386 Packages/DiffIndex
Ign http://archive.ubuntu.com natty/restricted i386 Packages/DiffIndex
Ign http://archive.ubuntu.com natty/universe i386 Packages/DiffIndex
Ign http://archive.ubuntu.com natty/multiverse i386 Packages/DiffIndex
Ign http://archive.ubuntu.com natty/main TranslationIndex
Ign http://archive.ubuntu.com natty/multiverse TranslationIndex
Ign http://archive.ubuntu.com natty/restricted TranslationIndex
Ign http://archive.ubuntu.com natty/universe TranslationIndex
Ign http://archive.ubuntu.com natty-updates/main i386 Packages/DiffIndex
Ign http://archive.ubuntu.com natty-updates/restricted i386 Packages/DiffIndex
Ign http://archive.ubuntu.com natty-updates/universe i386 Packages/DiffIndex
Ign http://archive.ubuntu.com natty-updates/multiverse i386 Packages/DiffIndex
Ign http://archive.ubuntu.com natty-updates/main TranslationIndex
Ign http://archive.ubuntu.com natty-updates/multiverse TranslationIndex
Ign http://archive.ubuntu.com natty-updates/restricted TranslationIndex
Ign http://archive.ubuntu.com natty-updates/universe TranslationIndex
Ign http://archive.ubuntu.com natty-security/main i386 Packages/DiffIndex
Ign http://archive.ubuntu.com natty-security/restricted i386 Packages/DiffIndex
Ign http://archive.ubuntu.com natty-security/universe i386 Packages/DiffIndex
Ign http://archive.ubuntu.com natty-security/multiverse i386 Packages/DiffIndex
Ign http://archive.ubuntu.com natty-security/main TranslationIndex
Ign http://archive.ubuntu.com natty-security/multiverse TranslationIndex
Ign http://archive.ubuntu.com natty-security/restricted TranslationIndex
Ign http://archive.ubuntu.com natty-security/universe TranslationIndex
Hit http://archive.ubuntu.com natty/main i386 Packages
Hit http://archive.ubuntu.com natty/restricted i386 Packages
Hit http://archive.ubuntu.com natty/universe i386 Packages
Hit http://archive.ubuntu.com natty/multiverse i386 Packages
Hit http://archive.ubuntu.com natty-updates/main i386 Packages
Hit http://archive.ubuntu.com natty-updates/restricted i386 Packages
Hit http://archive.ubuntu.com natty-updates/universe i386 Packages
Hit http://archive.ubuntu.com natty-updates/multiverse i386 Packages
Hit http://archive.ubuntu.com natty-security/main i386 Packages
Hit http://archive.ubuntu.com natty-security/restricted i386 Packages
Hit http://archive.ubuntu.com natty-security/universe i386 Packages
Hit http://archive.ubuntu.com natty-security/multiverse i386 Packages
Ign http://archive.ubuntu.com natty/main Translation-en
Ign http://archive.ubuntu.com natty/multiverse Translation-en
Ign http://archive.ubuntu.com natty/restricted Translation-en
Ign http://archive.ubuntu.com natty/universe Translation-en
Ign http://archive.ubuntu.com natty-updates/main Translation-en
Ign http://archive.ubuntu.com natty-updates/multiverse Translation-en
Ign http://archive.ubuntu.com natty-updates/restricted Translation-en
Ign http://archive.ubuntu.com natty-updates/universe Translation-en
Ign http://archive.ubuntu.com natty-security/main Translation-en
Ign http://archive.ubuntu.com natty-security/multiverse Translation-en
Ign http://archive.ubuntu.com natty-security/restricted Translation-en
Ign http://archive.ubuntu.com natty-security/universe Translation-en
Fetched 597 B in 0s (793 B/s)
W: GPG error: http://archive.ubuntu.com natty Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5
W: GPG error: http://archive.ubuntu.com natty-updates Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5
W: GPG error: http://archive.ubuntu.com natty-security Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5
W: Failed to fetch cdrom://Ubuntu 10.10 _Maverick Meerkat_ - Release i386 (20101007)/dists/maverick/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 10.10 _Maverick Meerkat_ - Release i386 (20101007)/dists/maverick/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

E: Some index files failed to download. They have been ignored, or old ones used instead.
motocrossluke@motocrossluke-P23G:~$ find /etc/apt -name '*.list' -exec bash -c 'echo -e "\n$1\n"; cat -n "$1"' _ '{}' \;

/etc/apt/sources.list

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

/etc/apt/sources.list.d/google-chrome.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/chrome/deb/ stable main

/etc/apt/sources.list.d/natty-partner.list

     1 # deb http://archive.canonical.com/ubuntu natty partner #Added by software-center
motocrossluke@motocrossluke-P23G:~$ ^C
motocrossluke@motocrossluke-P23G:~$ ^C
motocrossluke@motocrossluke-P23G:~$ ^C
motocrossluke@motocrossluke-P23G:~$ ^C
motocrossluke@motocrossluke-P23G:~$

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

Please read this:

https://wiki.ubuntu.com/Releases

Ubuntu 11.04 (natty) is end of life and not supported anymore since October 28, 2012

I suggest performing a clean install of Ubuntu 12.04 LTS which is supported until April 2017.

Revision history for this message
luke (luke-richards-1991) said :
#5

thank you i downloaded ubuntu 12.04 but i don't know how to install it. can you help with it please

Revision history for this message
Best Warren Hill (warren-hill) said :
#6

You can upgrade by following the instructions here

http://askubuntu.com/questions/91815/how-to-install-software-or-upgrade-from-old-unsupported-release

However, the easiest way is to backup your home directory and anywhere else you may have personal files and do a clean install.

Instructions here
http://askubuntu.com/questions/1366/how-can-i-install-ubuntu-without-removing-windows

Revision history for this message
luke (luke-richards-1991) said :
#7

Thanks Warren Hill, that solved my question.