changing repository to leg

Having recently installed mint14 “nadia” cinnamon succesfully, i attempted to follow the instructions to make leg the repository and failed dismally. So far:
tried adding these :
deb http://ftp.leg.uct.ac.za/linuxmint nadia main restricted universe multiverse
deb http://ftp.leg.uct.ac.za/linuxmint nadia-security main restricted universe multiverse
to Software Sources>add
and then when that did not work dirrectly to the text file /etc/apt/sources.list :

deb http://packages.linuxmint.com/ nadia main import
deb http://archive.ubuntu.com/ubuntu/ quantal main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ quantal-updates main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ quantal-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu/ quantal partner
deb http://packages.medibuntu.org/ quantal free non-free

# deb http://archive.getdeb.net/ubuntu quantal-getdeb apps
# deb http://archive.getdeb.net/ubuntu quantal-getdeb games
deb http://ftp.leg.uct.ac.za/linuxmint/ nadia main upstream import
deb http://ftp.leg.uct.ac.za/linuxmint nadia main restricted universe multiverse

and then when that did not work, altered this file: /usr/share/python-apt/templates/LinuxMint.mirrors to look like this :

/*some stuff about other mirrors*/
#LOC:ZA
http://ftp.leg.uct.ac.za/linuxmint/
http://mirror.ufs.ac.za/linuxmint-packages/
http://ftp.wa.co.za/pub/linuxmint/packages/
/*more stuff about other mirrors*/

this allowed me to choose the uct leg mirror dirrectly from Software Sources>Download From>Other> ftp.leg.uct.ac.za . doing this altered the file /etc/apt/sources.list to look like this :

deb http://ftp.leg.uct.ac.za nadia main import
deb http://ftp.leg.uct.ac.za quantal main restricted universe multiverse
deb http://ftp.leg.uct.ac.za quantal-updates main restricted universe multiverse
deb http://ftp.leg.uct.ac.za quantal-security main restricted universe multiverse
deb http://ftp.leg.uct.ac.za quantal partner
deb http://ftp.leg.uct.ac.za quantal free non-free

# deb http://archive.getdeb.net/ubuntu quantal-getdeb apps
# deb http://archive.getdeb.net/ubuntu quantal-getdeb games

# deb http://ftp.leg.uct.ac.za quantal main restricted universe multiverse
# deb-src http://ftp.leg.uct.ac.za quantal main restricted universe multiverse
deb http://packages.linuxmint.com/ nadia import

and still it does not seem to work. am i missing something monumentally obvious?
note running this command produces this :
sudo apt-get install updates
[sudo] password:
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package updates

any help would be hugely appreciated

“sudo apt-get install

sudo apt-get install updates” is the command to install a package called “updates”, which does not exist, which is what the error message is telling you. Is this what you mean by “does not work”?

I think the command you mean is “sudo apt-get update”.

sudo apt-get install

tanjit, at least i know now, i’l try again and report back as soon as i boot back into mint again, but just to check, what i did looks ok yes? besides the “get install updates”

sudo apt-get install

now i just get a hole bunch of errors, most seem to repeat, summurized:

Err http://packages.medibuntu.org quantal Release.gpg
Unable to connect to packages.medibuntu.org:http:
Err http://security.ubuntu.com quantal-security/main Translation-en
Unable to connect to security.ubuntu.com:http: [IP: 91.189.91.13 80]
/*some stuff which seems to have worked?*/
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/quantal-updates/universe/binary-i… Unable to connect to archive.ubuntu.com:http: [IP: 91.189.92.202 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.

i don’t seem to be able to download anything through the download manager, tried to download octave and it just sat there, doing not very much

It looks like all your URLs

It looks like all your URLs are wrong.

1) the mirror for Ubuntu is under http://ftp.leg.uct.ac.za/ubuntu
2) the mirror for Medibuntu is under http://ftp.leg.uct.ac.za/medibuntu
3) the mirror for Linux Mint is under http://ftp.leg.uct.ac.za/pub/linux/linuxmint/packages

You need to edit all the files you edited and fix these base URLs — in /etc/apt/sources.list and anything you may have in /etc/apt/sources.list.d/ . I’m not seeing any references to security or Medibuntu in the last sources.list file you pasted — Medibuntu is likely to be in a separate file; I’m not sure where security is coming from.

You can check whether these URLs are correct using your browser — you can browse the mirror to see where everything is. For example, if you went to http://ftp.leg.uct.ac.za/linuxmint/ you would rapidly discover that there is no such directory on the server. Top-level shortcuts are provided for frequently used distros like Ubuntu, but not for Mint.

Your /usr/share/python-apt/templates/LinuxMint.mirrors is also wrong. The equivalent directory to e.g. http://mirror.ufs.ac.za/linuxmint-packages/ is the Mint URL above — you can verify this by opening both URLs in your browser and comparing the directory structure.

Fix all the URLs, run apt-get update again, and see what happens.

P.S. I’m guessing that the

P.S. I’m guessing that the security and medibuntu lines are unchanged from the first version of sources.list that you pasted, in which case everything may still be in the same file.

You can look in http://ftp.leg.uct.ac.za/ubuntu/dists/ to see which “pockets” are mirrored (i.e. “quantal”, “quantal-security”, etc.) and in http://ftp.leg.uct.ac.za/ubuntu/pool/ to see which components are mirrored (“main”, “universe”, etc.). You should use the Medibuntu URL for the Medibuntu stuff only; for everything else that mentions Quantal you should use the Ubuntu URL, including the security stuff (but not the getdeb stuff which is commented out; I don’t think that’s mirrored), and for the Nadia stuff you should use the Mint URL.

Don’t use the GUI to select a mirror again — as you can see, when you tried it it used the same (wrong) URL for the Mint stuff (Nadia) and the Ubuntu stuff (Quantal), and you need two different URLs. Rather edit the sources.list file yourself; then you can see exactly what is happening.

update and other downloads working

thank you kindly, it is all working now, or i think it is, at any rate i downloaded octave and gummi which was what i wanted. Appologies for wasting time over what i’m sure appears to be quite trivial but it is hugely appreciated. One last thing at the end of the update it does this :

W: Failed to fetch http://ftp.leg.uct.ac.za/ubuntu/dists/quantal/Release Unable to find expected entry ‘partner/binary-amd64/Packages’ 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.

i’m presuming this is not something i should be overly concerned about?, going to back up the modiffied text file incase download manager tries to change it again. thanks again

You’re trying to fetch

You’re trying to fetch Canonical’s “partner” component from the main Ubuntu mirror. It’s not mirrored there; it’s under http://ftp.leg.uct.ac.za/canonical-partner — you should find the line which refers to “partner” and change the URL to this.

Note: the mirror doesn’t mirror source packages (they would take up *way* too much space), so don’t change any deb-src lines to mirror URLs!

By the way, if you want the

By the way, if you want the mirror for Ubuntu Extras, it’s here:

http://ftp.leg.uct.ac.za/pub/linux/ubuntu-extras

a thousand thanks

all is working well, thank you, apoologies about the late reply. would i add that as:
deb http://ftp.leg.uct.ac.za/pub/linux/ubuntu-extras quantal main restricted universe multiverse

and would it be a bad idea to post what /etc/apt/sources.list looks like now, incase somebody finds it useful?

Extras only has a “main”, so

Extras only has a “main”, so drop the “restricted universe multiverse”.

Go ahead and post the file again; it could help someone else using Mint or Ubuntu.

/etc/apt/sources.list before and after

Before altering:
deb http://packages.linuxmint.com/ nadia main import
deb http://archive.ubuntu.com/ubuntu/ quantal main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ quantal-updates main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ quantal-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu/ quantal partner
deb http://packages.medibuntu.org/ quantal free non-free

# deb http://archive.getdeb.net/ubuntu quantal-getdeb apps
# deb http://archive.getdeb.net/ubuntu quantal-getdeb games

after altering:
deb http://ftp.leg.uct.ac.za/pub/linux/linuxmint/packages nadia main import
deb http://ftp.leg.uct.ac.za/ubuntu quantal main restricted universe multiverse
deb http://ftp.leg.uct.ac.za/ubuntu quantal-updates main restricted universe multiverse
deb http://ftp.leg.uct.ac.za/ubuntu quantal-security main restricted universe multiverse
deb http://ftp.leg.uct.ac.za/canonical-partner quantal partner
deb http://ftp.leg.uct.ac.za/medibuntu quantal free non-free
deb http://ftp.leg.uct.ac.za/pub/linux/ubuntu-extras quantal main

# deb http://archive.getdeb.net/ubuntu quantal-getdeb apps
# deb http://archive.getdeb.net/ubuntu quantal-getdeb games

the meaning of main restricted universe multiverse:
Main - Officially supported software.
Restricted - Supported software that is not available under a completely free license.
Universe - Community maintained software, i.e. not officially supported software.
Multiverse - Software that is not free.
a useful link: https://help.ubuntu.com/community/Repositories/Ubuntu

after adding “deb http://ftp.leg.uct.ac.za/pub/linux/ubuntu-extras quantal main” , started getting an eror:
W: Failed to fetch http://ftp.leg.uct.ac.za/pub/linux/ubuntu-extras/dists/quantal/main/bina… 404 Not Found
W: Failed to fetch http://ftp.leg.uct.ac.za/pub/linux/ubuntu-extras/dists/quantal/main/bina… 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.

followed the links and they really don’t exist, not sure how concerned i should be.
thanks again to confluence

Sorry; after I upgraded to

Sorry; after I upgraded to Quantal myself I noticed that LEG doesn’t mirror the Extras repository for Quantal — it only goes up to Precise. I will find out why it isn’t mirrored and if it will be in the future. In the meantime, you have two options:

1) switch back to the normal Extras repository
2) just comment out the Extras repository entirely.

If you want apt to fetch stuff from outside the intranet, you need to configure it to go through the proxy, which requires a bit of fiddling around. If you have a quota, you also need to take care not to do all your updates through the proxy, or you will eat through your quota very fast. I’m not sure if the proxy is configured not to count downloads from e.g. LEG against your quota — you may need to configure an exception at your end so that you don’t make those requests through the proxy at all.

My recommendation would be to disable the Extras repository and only worry about this stuff if you find that you actually need it (or need some external PPA) later. It’s a very small repository which hosts completely new packages so that you can get them before they’ve been included in an Ubuntu release.

(Note for later: as a quick and dirty workaround, you can download packages from external repositories in your browser and install them with dpkg. This works pretty well for packages with no dependencies, or a couple of dependencies you can install manually beforehand, but gets really messy for large groups of interlocking packages.)

extras for quantal

i just commented it out because the update error was annoying me, to be honest i don’t need pre release stuff or anything yet. at the moment my task is to wrap my head around all this new stuff and get skype working so i can stop switching between mint and windows. i can fetch stuff outside of uct but that burns up precious quota. not really fussed at this stage, because most of what i can see being useful is downloadable from leg, but if the extras repository does get mirrored, would you mind posting something somewhere just as a heads up?

Sure. I suggest that you sign

Sure. I suggest that you sign up to the LEG mailing list(s).

thanks

thanks everyone, joined the mailing lists. really happy it all works now.

Syndicate content