Author Topic: [SOLVED] Apt Sources.list  (Read 4860 times)

Nuwis

  • Regular Poster
  • **
  • Posts: 43
    • View Profile
[SOLVED] Apt Sources.list
« on: July 29, 2011, 04:35:11 pm »
Hi again,
I don't know if somebody knows that or if it's working on it, but i had opened a ticket regarding that.
If it is solved please remove this post.

I had observed in a new install of 0810, there's some mistakes regarding the edition of sources.list.
1.- In the wiki installation guide for 0810 there's a duplicate line for repos and you get a warning regarding that:

Line 1 - deb http://old-releases.ubuntu.com/ubuntu/ intrepid main restricted universe multiverse
Line 10 - deb http://old-releases.ubuntu.com/ubuntu/ intrepid main universe multiverse

2.- When you execute ./pre-install-from-repo.sh the script update the sources.list and add a bad line on line 3-4. It writes:

deb http://deb.linuxmce.org/ubuntu/ 20dev_ubuntu maindeb http://deb.linuxmce.org/ubuntu/ intrepid beta2

instead

deb http://deb.linuxmce.org/ubuntu/ 20dev_ubuntu main
deb http://deb.linuxmce.org/ubuntu/ intrepid beta2

 3.- Also when you execute ./pre-install-from-repo.sh the scrip modify the sources.list file, removing the *.*archive*.* to *.*old-releases*.* but the repo from canonical still in archive and is not moved to old-releases entry. The entry for canonical should be:

deb http://archive.canonical.com/ubuntu intrepid partner

instead

deb http://old-release.canonical.com/ubuntu intrepid partner
that the script changes


The ticket is:  http://svn.linuxmce.org/trac.cgi/ticket/1161#preview

Tnks in advance
« Last Edit: August 02, 2011, 07:27:37 pm by Nuwis »
Frank Galan

An Spanish LMCE user
http://wiki.linuxmce.org/index.php/User:Nuwis

Nuwis

  • Regular Poster
  • **
  • Posts: 43
    • View Profile
Re: Apt Sources.list
« Reply #1 on: August 02, 2011, 12:43:12 pm »
Hi again,

Following the svn new-installer the canonical problem and the duplicate line for main intrepid repo is solved, but still writing this line on sources.list:

deb http://deb.linuxmce.org/ubuntu/ 20dev_ubuntu  maindeb http://old-releases.ubuntu.com/ubuntu intrepid main restricted universe multiverse

instead of

deb http://deb.linuxmce.org/ubuntu/ 20dev_ubuntu  main
deb http://old-releases.ubuntu.com/ubuntu intrepid main restricted universe multiverse

and you get errors. I tried with the updated new-installer from repo and from svn and do the same, as reported on ticket.

PS.
I had observed when i execute mce-install.sh canonical changes also to old-releases instead keeping the archive prefix with svn installer.
« Last Edit: August 02, 2011, 12:57:55 pm by Nuwis »
Frank Galan

An Spanish LMCE user
http://wiki.linuxmce.org/index.php/User:Nuwis

Nuwis

  • Regular Poster
  • **
  • Posts: 43
    • View Profile
Re: Apt Sources.list
« Reply #2 on: August 02, 2011, 07:27:01 pm »
At the end, and doing some test guided by pos (Thanks a lot) it seems that the repo new-installer is wrong but the SVN nev-installer runs ok and doesn't do this mistakes.

Thanks
Frank Galan

An Spanish LMCE user
http://wiki.linuxmce.org/index.php/User:Nuwis

Marie.O

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3675
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: [SOLVED] Apt Sources.list
« Reply #3 on: August 02, 2011, 11:16:51 pm »
Nuvis,

thanks for pointing out the problem.

Could you amend the wiki page you followed with the instructions I gave you, so other people won't fall in the same trap.

PS: new-installer-latest.tar.gz has been updated with the latest svn code, so should work as well.

Nuwis

  • Regular Poster
  • **
  • Posts: 43
    • View Profile
Re: [SOLVED] Apt Sources.list
« Reply #4 on: August 03, 2011, 07:47:41 pm »
OK, still having small fixes when you execute mce-install.sh it calls to repoplaces.sh. Repoplaces still changing the canonical repo from archive to old-release and fails to load. I made a small fix in the repoplaces.sh and seems to work fine, just define that 'archive' should be followed always by '.ubuntu' to avoid the problem with canonical.

repoplaces.sh

Original code (Starting on line 9)

if [ "$n1" -gt "$o1" ] ; then
      echo "Changing repositories..."
      sed -i.backup -e 's/\/.*.archive/\/\/old-releases/' -e 's/security.ubuntu/old-         releases.ubuntu/' -e 's/\/archive/\/old-releases/'

Modified code (Starting on line 9 also)

if [ "$n1" -gt "$o1" ] ; then
      echo "Changing repositories..."
      sed -i.backup -e 's/\/.*.archive.ubuntu/\/\/old-releases.ubuntu/' -e                 's/security.ubuntu/old-releases.ubuntu/' -e 's/\/archive.ubuntu/\/old-            releases.ubuntu/'

It solves the problem and keep canonical in archives instead of old-releases. I tried it locally could somebody test it?
For the people doesn't know where's repoplaces.sh, this file is in the new-installer folder you downloaded during installation.
Frank Galan

An Spanish LMCE user
http://wiki.linuxmce.org/index.php/User:Nuwis

l3mce

  • NEEDS to work for LinuxMCE
  • ***
  • Posts: 1084
    • View Profile
Re: [SOLVED] Apt Sources.list
« Reply #5 on: August 09, 2011, 04:18:26 am »
Hi. That's mine. Sorry for the trouble. I mistakenly believed that cononical also needed to change. I have been awol for a while. Thank you for pointing out the error. Can you make an svn patch and upload it to http://svn.linuxmce.org/trac.cgi/ticket/1003 please?

I do not know your familiarity with svn which is why I ask you to do it. Good thing to learn... and if you know it already it is a no brainer.

Again thank you for the fix. Didn't know it was broken.
I never quit... I just ping out.

Nuwis

  • Regular Poster
  • **
  • Posts: 43
    • View Profile
Re: [SOLVED] Apt Sources.list
« Reply #6 on: August 11, 2011, 12:25:54 pm »
I submit whole file repoplaces.7.sh to the ticket in svn, i will try to be familiar with svn. I didn't used never just two or three times.
The file is corrected with the modifications that i commented up.
Frank Galan

An Spanish LMCE user
http://wiki.linuxmce.org/index.php/User:Nuwis

Nuwis

  • Regular Poster
  • **
  • Posts: 43
    • View Profile
Re: [SOLVED] Apt Sources.list
« Reply #7 on: August 11, 2011, 12:45:11 pm »
Canonical repo patch submitedd to svn on the ticket.
File: canonical-fix.patch is the patch file.


Last things:
Wrong rewrite on repoplaces.7.sh, lost to change last repo on sed command.
Use canonical-fix2.patch instead canonical-fix.patch and repoplaces.7.2.sh instead repoplaces.7.sh
« Last Edit: August 11, 2011, 12:57:56 pm by Nuwis »
Frank Galan

An Spanish LMCE user
http://wiki.linuxmce.org/index.php/User:Nuwis