<SOLVED> Updater Fails to Reach Repos [404 Error] LM 15 RC

Questions about applications and software
Forum rules
Before you post please read how to get help
Locked
chris90
Level 1
Level 1
Posts: 10
Joined: Mon Jul 16, 2012 1:09 am

<SOLVED> Updater Fails to Reach Repos [404 Error] LM 15 RC

Post by chris90 » Mon May 27, 2013 5:21 am

Hey All,

I just installed LM 15 RC...and I have to say its beautiful! I have only one problem...the update manager reports that it "Could not download all repository indexes" and then lists the repositories which all have a url of the form:

http://[variousdomains]/ubuntu/dists/olivia/[varioussubdirs]

Obviously, the problem is that ubuntu doesn't have a release name olivia and so there is no "olivia" subdirectory in /ubuntu/dists/. I've seen this issue reported more than once on the LM 15 RC blog post. Each time Clem's response is to do mintsources->Restore Default Settings and this seems to work for some. However, I've tried this several times and I've not had any luck getting this to work.

All the entries in my sources.list file are of the form...

deb http://extras.ubuntu.com/ubuntu olivia main
deb-src http://extras.ubuntu.com/ubuntu olivia main
deb http://ubuntu.mirror.cambrium.nl/ubuntu/ olivia main multiverse
deb-src http://ubuntu.mirror.cambrium.nl/ubuntu/ olivia main multiverse
deb http://mirror.pnl.gov/ubuntu/ olivia main multiverse
deb-src http://mirror.pnl.gov/ubuntu/ olivia main multiverse
deb http://ppa.launchpad.net/bearoso/ppa/ubuntu olivia main
deb-src http://ppa.launchpad.net/bearoso/ppa/ubuntu olivia main

...which looks right to me. Thoughts?

Thanks for your help,
Chris
Last edited by chris90 on Tue May 28, 2013 2:44 am, edited 1 time in total.

User avatar
xenopeek
Level 24
Level 24
Posts: 23714
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: Updater Fails to Reach Repositories [404 Error] LM 15 RC

Post by xenopeek » Mon May 27, 2013 5:50 am

Linux Mint 15 doesn't use /etc/apt/sources.list, but places repository configuration in /etc/apt/sources.list.d/. If you have a /etc/apt/sources.list file, something may be wrong, like having duplicate entries. Please share your entire repository configuration. You can get that with this command:

Code: Select all

inxi -r
In any case, "olivia" should be "raring" for Ubuntu compatible repositories (such as PPAs as listed in your file). Only use "olivia" for Linux Mint repositories. So if you find no duplicates, you'll need to edit this file to correct those errors.
Image

chris90
Level 1
Level 1
Posts: 10
Joined: Mon Jul 16, 2012 1:09 am

Re: Updater Fails to Reach Repositories [404 Error] LM 15 RC

Post by chris90 » Mon May 27, 2013 2:08 pm

Linux Mint 15 doesn't use /etc/apt/sources.list, but places repository configuration in /etc/apt/sources.list.d/.
Thats good to know...thanks.

And yes, I do have both /etc/apt/sources.list and /etc/apt/sources.list.d/. This is confirmed by the output of inxi -r :

Code: Select all

Repos:     Active apt sources in file: /etc/apt/sources.list
           deb http://us.archive.ubuntu.com/ubuntu/ olivia main restricted
           deb-src http://us.archive.ubuntu.com/ubuntu/ olivia main restricted
           deb http://us.archive.ubuntu.com/ubuntu/ olivia-updates main restricted
           deb-src http://us.archive.ubuntu.com/ubuntu/ olivia-updates main restricted
           deb http://us.archive.ubuntu.com/ubuntu/ olivia universe
           deb-src http://us.archive.ubuntu.com/ubuntu/ olivia universe
           deb http://us.archive.ubuntu.com/ubuntu/ olivia-updates universe
           deb-src http://us.archive.ubuntu.com/ubuntu/ olivia-updates universe
           deb http://us.archive.ubuntu.com/ubuntu/ olivia multiverse
           deb-src http://us.archive.ubuntu.com/ubuntu/ olivia multiverse
           deb http://us.archive.ubuntu.com/ubuntu/ olivia-updates multiverse
           deb-src http://us.archive.ubuntu.com/ubuntu/ olivia-updates multiverse
           deb http://us.archive.ubuntu.com/ubuntu/ olivia-backports main restricted universe multiverse
           deb-src http://us.archive.ubuntu.com/ubuntu/ olivia-backports main restricted universe multiverse
           deb http://security.ubuntu.com/ubuntu olivia-security main restricted
           deb-src http://security.ubuntu.com/ubuntu olivia-security main restricted
           deb http://security.ubuntu.com/ubuntu olivia-security universe
           deb-src http://security.ubuntu.com/ubuntu olivia-security universe
           deb http://security.ubuntu.com/ubuntu olivia-security multiverse
           deb-src http://security.ubuntu.com/ubuntu olivia-security multiverse
           deb http://extras.ubuntu.com/ubuntu olivia main
           deb-src http://extras.ubuntu.com/ubuntu olivia main
           deb http://ubuntu.mirror.cambrium.nl/ubuntu/ olivia main multiverse
           deb-src http://ubuntu.mirror.cambrium.nl/ubuntu/ olivia main multiverse
           deb http://mirror.pnl.gov/ubuntu/ olivia main multiverse
           deb-src http://mirror.pnl.gov/ubuntu/ olivia main multiverse
           deb http://ppa.launchpad.net/bearoso/ppa/ubuntu olivia main
           deb-src http://ppa.launchpad.net/bearoso/ppa/ubuntu olivia main
           Active apt sources in file: /etc/apt/sources.list.d/official-package-repositories.list
           deb http://packages.linuxmint.com olivia main upstream import backport
           deb http://archive.ubuntu.com/ubuntu raring main restricted universe multiverse
           deb http://archive.ubuntu.com/ubuntu raring-updates main restricted universe multiverse
           deb http://security.ubuntu.com/ubuntu/ raring-security main restricted universe multiverse
           deb http://archive.canonical.com/ubuntu/ raring partner
I also have duplicates of other files in /etc/apt/. For example, I have both, preferences.d and preferences, as well as trusted.gpg.d and trusted.gpg.

Thanks for your response xenopeek,
Chris

chris90
Level 1
Level 1
Posts: 10
Joined: Mon Jul 16, 2012 1:09 am

Re: Updater Fails to Reach Repositories [404 Error] LM 15 RC

Post by chris90 » Mon May 27, 2013 2:19 pm

So if you find no duplicates, you'll need to edit this file to correct those errors.
Do you mean that I need to correct the errors in sources.list? If LM 15 isn't supposed to have a sources.list does it make more sense to simply delete it? This is a fresh install so I haven't added any repositories yet.

The contents of my sources.list file is:

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://us.archive.ubuntu.com/ubuntu/ olivia main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ olivia main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ olivia-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ olivia-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ olivia universe
deb-src http://us.archive.ubuntu.com/ubuntu/ olivia universe
deb http://us.archive.ubuntu.com/ubuntu/ olivia-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ olivia-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://us.archive.ubuntu.com/ubuntu/ olivia multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ olivia multiverse
deb http://us.archive.ubuntu.com/ubuntu/ olivia-updates multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ olivia-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ olivia-backports main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ olivia-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu olivia-security main restricted
deb-src http://security.ubuntu.com/ubuntu olivia-security main restricted
deb http://security.ubuntu.com/ubuntu olivia-security universe
deb-src http://security.ubuntu.com/ubuntu olivia-security universe
deb http://security.ubuntu.com/ubuntu olivia-security multiverse
deb-src http://security.ubuntu.com/ubuntu olivia-security multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu quantal partner
# deb-src http://archive.canonical.com/ubuntu quantal partner

## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
deb http://extras.ubuntu.com/ubuntu olivia main
deb-src http://extras.ubuntu.com/ubuntu olivia main
deb http://ubuntu.mirror.cambrium.nl/ubuntu/ olivia main multiverse
deb-src http://ubuntu.mirror.cambrium.nl/ubuntu/ olivia main multiverse
deb http://mirror.pnl.gov/ubuntu/ olivia main multiverse
deb-src http://mirror.pnl.gov/ubuntu/ olivia main multiverse
deb http://ppa.launchpad.net/bearoso/ppa/ubuntu olivia main
deb-src http://ppa.launchpad.net/bearoso/ppa/ubuntu olivia main


Thanks,
Chris

User avatar
xenopeek
Level 24
Level 24
Posts: 23714
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: Updater Fails to Reach Repositories [404 Error] LM 15 RC

Post by xenopeek » Mon May 27, 2013 3:06 pm

I'd like to know how you added your PPAs and other additional repositories. This is a completely broken and incorrect configuration. Perhaps from how you added them the developers do need to fix some bug in Software Sources (which I assume you used to add PPAs and additional repositories; as that is what it is for). I'm confused about all the comments in your /etc/apt/sources.list file, which keep referring to Ubuntu. That looks like some program from Ubuntu has been modifying your configuration--while all programs that works on repository configuration are from Linux Mint on Linux Mint 15 and the Ubuntu programs for that have been removed.

I'd delete everything from the /etc/apt/sources.list file except that last block of 8 repository lines. Those seem to be for additional repositories, while all the lines above that are wrongly configured duplicates of what is in /etc/apt/sources.list.d/. Also, for those last 8 lines you do need to replace olivia with raring.
Image

chris90
Level 1
Level 1
Posts: 10
Joined: Mon Jul 16, 2012 1:09 am

Re: Updater Fails to Reach Repositories [404 Error] LM 15 RC

Post by chris90 » Mon May 27, 2013 3:31 pm

I ran into this issue after a clean install. By clean install I mean the following... I had been using ubuntu 12.10 but I had a separate / and /home partition. During LM 15 RC installation I pointed the partition manager to /home and told it to use by current / (from the ubuntu 12.10 install) as its /. I did not ask the partition manager to reformat / (so maybe it wasn't as 'clean' an install as I expected?). Immediately after the installation I clicked the mintUpdater (4.5.2) and tried to update the system. Which is when I first encountered this issue.

One thing that might be related is that during the LM 15 RC installation I was asked something along the lines of whether I'd like to preserve existing software. (I don't remember the exact phrasing because it didn't seem important at the time) I said yes...why not...it sounded convenient :D ! But when it attempted to do so it failed and warned me that I might have to re-install some software. So perhaps sources.list is a hold over file from my ubuntu 12.10 installation that was pulled over to the LM 15 RC install during this process?

I have not added any PPAs or additional repositories.

I saw your (xenopeek) response to another poster (http://forums.linuxmint.com/viewtopic.p ... 28#p723567) in which you advised him to remove the sources.list file. I simply moved mine to sources.list.old, updated the cache, and I no longer get errors. However you advised me that:
I'd delete everything from the /etc/apt/sources.list file except that last block of 8 repository lines. Those seem to be for additional repositories, while all the lines above that are wrongly configured duplicates of what is in /etc/apt/sources.list.d/. Also, for those last 8 lines you do need to replace olivia with raring.
Which makes me think that those last lines are important. Can you explain why I should keep those last 8 lines as opposed to simply removing the sources.list file all together.

Thanks Again,
If you need additional info from me for trouble shooting just let me know...I'm happy to help.
-Chris

User avatar
xenopeek
Level 24
Level 24
Posts: 23714
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: Updater Fails to Reach Repositories [404 Error] LM 15 RC

Post by xenopeek » Mon May 27, 2013 3:54 pm

That other user only had misconfigured duplicates in the /etc/apt/sources.list file, with the correct configuration in the files under /etc/apt/sources.list.d/. Almost the same for you, except those last 8 lines in your file are not duplicates--they are additional repositories you had configured, probably on your Ubuntu system before installing Linux Mint. You can delete them, doesn't impact your system except that you won't get automatic updates for any programs that you installed from those repositries.
Image

chris90
Level 1
Level 1
Posts: 10
Joined: Mon Jul 16, 2012 1:09 am

Re: Updater Fails to Reach Repositories [404 Error] LM 15 RC

Post by chris90 » Mon May 27, 2013 6:15 pm

...except those last 8 lines in your file are not duplicates--they are additional repositories you had configured...
Okay...got it...thanks for the explanation. I wasn't reading the other thread carefully enough.

It looks like everything is happy now. As you suggested I've removed all but that last 8 lines of my sources.list file and changed "olivia" to "raring". So my sources.list file now looks like:

Code: Select all

## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
deb http://extras.ubuntu.com/ubuntu raring main
deb-src http://extras.ubuntu.com/ubuntu raring main
deb http://ubuntu.mirror.cambrium.nl/ubuntu/ raring main multiverse
deb-src http://ubuntu.mirror.cambrium.nl/ubuntu/ raring main multiverse
deb http://mirror.pnl.gov/ubuntu/ raring main multiverse
deb-src http://mirror.pnl.gov/ubuntu/ raring main multiverse
deb http://ppa.launchpad.net/bearoso/ppa/ubuntu raring main
deb-src http://ppa.launchpad.net/bearoso/ppa/ubuntu raring main
And my sources.list.d/official-package-repositories.list looks like:

Code: Select all

deb http://packages.linuxmint.com olivia main upstream import backport

deb http://archive.ubuntu.com/ubuntu raring main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu raring-updates main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu/ raring-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu/ raring partner
And the output of inxi -r looks like:

Code: Select all

Repos:     Active apt sources in file: /etc/apt/sources.list
           deb http://extras.ubuntu.com/ubuntu raring main
           deb-src http://extras.ubuntu.com/ubuntu raring main
           deb http://ubuntu.mirror.cambrium.nl/ubuntu/ raring main multiverse
           deb-src http://ubuntu.mirror.cambrium.nl/ubuntu/ raring main multiverse
           deb http://mirror.pnl.gov/ubuntu/ raring main multiverse
           deb-src http://mirror.pnl.gov/ubuntu/ raring main multiverse
           deb http://ppa.launchpad.net/bearoso/ppa/ubuntu raring main
           deb-src http://ppa.launchpad.net/bearoso/ppa/ubuntu raring main
           Active apt sources in file: /etc/apt/sources.list.d/official-package-repositories.list
           deb http://packages.linuxmint.com olivia main upstream import backport
           deb http://archive.ubuntu.com/ubuntu raring main restricted universe multiverse
           deb http://archive.ubuntu.com/ubuntu raring-updates main restricted universe multiverse
           deb http://security.ubuntu.com/ubuntu/ raring-security main restricted universe multiverse
           deb http://archive.canonical.com/ubuntu/ raring partner
And the updater is happy...and I get no more errors...which is awesome. I'll mark this tread as solved [EDIT: Where the heck is the "Mark as Solved" button?!], but I have one last question which I think is pertinent to this thread. Since LM 15 doesn't use source.list when I add a repository manually where should I put it. sources.list or sources.list.d/official-package-repositories.list ? Or does it even matter? Of course the easy way is to use mintsources...but I'd still like to know which is "supposed" to be used.

Thanks for all your help!
-Chris

User avatar
xenopeek
Level 24
Level 24
Posts: 23714
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: Updater Fails to Reach Repositories [404 Error] LM 15 RC

Post by xenopeek » Tue May 28, 2013 1:42 am

chris90 wrote:I'll mark this tread as solved
Use the edit button displayed in the top right of your first post in this topic. Add <SOVLED> to your topic's subject.
chris90 wrote:when I add a repository manually where should I put it
The whole idea is to not clobber everything together in one file :) So no, don't add it to sources.list.d/official-package-repositories.list. Add it to sources.list.d/<a suitable name for your repository>.list. So in a separate file, so that it is easy to see what came from where. using mintSources or add-apt-repository command that is also what these will do, add a new file in sources.list.d/.
Image

Locked

Return to “Software & Applications”