update manager Failed to download repository information

Asked by Bob

its been a year sence I've had theis computer on the net was going to do updates and I get this
I get this Failed to download repository information Check your Internet connection.
details
W:Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/precise/Release Unable to find expected entry 'commercial/source/Sources' in Release file (Wrong sources.list entry or malformed file)
, W:Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/precise-updates/Release Unable to find expected entry 'commercial/source/Sources' in Release file (Wrong sources.list entry or malformed file)
, W:Failed to fetch http://security.ubuntu.com/ubuntu/dists/precise-security/Release Unable to find expected entry 'commercial/source/Sources' in Release file (Wrong sources.list entry or malformed file)
, W:Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/precise-backports/Release Unable to find expected entry 'commercial/source/Sources' in Release file (Wrong sources.list entry or malformed file)
, E:Some index files failed to download. They have been ignored, or old ones used instead.
can any one hel thank you

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Manfred Hampl
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

What is the output of :

cat -n /etc/apt/sources.list

Thanks

Revision history for this message
Bob (smith13) said :
#2

$ cat -n /etc/apt/sources.list
     1# deb cdrom:[Ubuntu 12.04 LTS _Precise Pangolin_ - Release i386 (20120423)]/ precise main restricted
     2
     3# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
     4# newer versions of the distribution.
     5deb http://us.archive.ubuntu.com/ubuntu/ precise main restricted commercial
     6deb-src http://us.archive.ubuntu.com/ubuntu/ precise main restricted commercial
     7
     8## Major bug fix updates produced after the final release of the
     9## distribution.
    10deb http://us.archive.ubuntu.com/ubuntu/ precise-updates main restricted commercial
    11deb-src http://us.archive.ubuntu.com/ubuntu/ precise-updates main restricted commercial
    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.
    16deb http://us.archive.ubuntu.com/ubuntu/ precise universe
    17deb-src http://us.archive.ubuntu.com/ubuntu/ precise universe
    18deb http://us.archive.ubuntu.com/ubuntu/ precise-updates universe
    19deb-src http://us.archive.ubuntu.com/ubuntu/ precise-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.
    26deb http://us.archive.ubuntu.com/ubuntu/ precise multiverse
    27deb-src http://us.archive.ubuntu.com/ubuntu/ precise multiverse
    28deb http://us.archive.ubuntu.com/ubuntu/ precise-updates multiverse
    29deb-src http://us.archive.ubuntu.com/ubuntu/ precise-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.
    36deb http://us.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse commercial
    37deb-src http://us.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse commercial
    38
    39deb http://security.ubuntu.com/ubuntu precise-security main restricted commercial
    40deb-src http://security.ubuntu.com/ubuntu precise-security main restricted commercial
    41deb http://security.ubuntu.com/ubuntu precise-security universe
    42deb-src http://security.ubuntu.com/ubuntu precise-security universe
    43deb http://security.ubuntu.com/ubuntu precise-security multiverse
    44deb-src http://security.ubuntu.com/ubuntu precise-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 precise partner
    51# deb-src http://archive.canonical.com/ubuntu precise 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.
    55deb http://extras.ubuntu.com/ubuntu precise main
    56deb-src http://extras.ubuntu.com/ubuntu precise main
bob@rob:~$

________________________________
 From: actionparsnip <email address hidden>
To: <email address hidden>
Sent: Thursday, September 12, 2013 12:01 AM
Subject: Re: [Question #235580]: update manager Failed to download repository information

Your question #235580 on Ubuntu changed:
https://answers.launchpad.net/ubuntu/+question/235580

    Status: Open => Needs information

actionparsnip requested more information:
What is the output of :

cat -n /etc/apt/sources.list

Thanks

--
To answer this request for more information, you can either reply to
this email or enter your reply at the following page:
https://answers.launchpad.net/ubuntu/+question/235580

You received this question notification because you asked the question.

Revision history for this message
Best Manfred Hampl (m-hampl) said :
#3

There are error in your sources.list (the configuration file specifying where the package management system looks for packages to download and for updates). To correct the error do the following:

Open a terminal and issue the command

gksudo gksudo gedit /etc/apt/sources.list
provide your password when asked so
delete all strings "commercial" - they are nonsense in that context
save the file and close the editor.

Then try to perform

sudo apt-get update
sudo apt-get upgrade

and check if you still get warnings or error messages.

Revision history for this message
Bob (smith13) said :
#4

its alive! got it, thank you