LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 08-06-2009, 11:16 AM   #1
evdv
LQ Newbie
 
Registered: Aug 2009
Location: USA
Distribution: ubuntu 8.10
Posts: 4
Blog Entries: 1

Rep: Reputation: 0
intrepid, PS3, update sources list from "ubuntu" to "ports-ubuntu"


THe PowerPC does no longer receive commercial support form Canonical.
How do I update /etc/apt/sources.list.
My goal is to change deb http://security.ubuntu.com/... to
to http://ports.ubuntu.com/...
Please advice, using find and replace.
thx


Wait! Found something at http://ubuntuforums.org/showthread.php?t=772930, oh no false alarm! This thread does not explain how to change the /etc/apt/source.list either. I know what to change but do not know how.

Last edited by evdv; 08-06-2009 at 11:44 AM. Reason: Possible solution
 
Old 08-06-2009, 01:07 PM   #2
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092

Rep: Reputation: 269Reputation: 269Reputation: 269
Can you post your /etc/apt/sources.list file?

But generally you'll do something like gksudo gedit /etc/apt/sources.list and then edit the list how you want. You'll want to put a "#" symbol in front of the old lines that don't support PPC to comment them out.
 
Old 08-06-2009, 08:51 PM   #3
evdv
LQ Newbie
 
Registered: Aug 2009
Location: USA
Distribution: ubuntu 8.10
Posts: 4
Blog Entries: 1

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by pljvaldez View Post
Can you post your /etc/apt/sources.list file?

But generally you'll do something like gksudo gedit /etc/apt/sources.list and then edit the list how you want. You'll want to put a "#" symbol in front of the old lines that don't support PPC to comment them out.
Understood

Dear pljvaldez:

My sources.list file:
#
# deb cdrom:[Ubuntu 8.10 _Intrepid Ibex_ - Release powerpc+ps3 (20081030)]/ intrepid main restricted
# deb-src http://us.archive.ubuntu.com/ubuntu/ intrepid restricted main #Added by software-properties

# deb cdrom:[Ubuntu 8.10 _Intrepid Ibex_ - Release powerpc+ps3 (20081030)]/ intrepid main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

# deb http://us.archive.ubuntu.com/ubuntu/ intrepid main restricted
# deb-src http://us.archive.ubuntu.com/ubuntu/ intrepid main multiverse universe #Added by software-properties
# deb-src http://archive.ubuntu.com/ubuntu intrepid main restricted

## Major bug fix updates produced after the final release of the
## distribution.
# deb http://us.archive.ubuntu.com/ubuntu/ intrepid-updates main restricted
# deb-src http://us.archive.ubuntu.com/ubuntu/ intrepid-updates restricted main multiverse universe #Added by software-properties
# deb-src http://archive.ubuntu.com/ubuntu intrepid-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/ intrepid universe
# deb-src http://archive.ubuntu.com/ubuntu intrepid universe
# deb http://us.archive.ubuntu.com/ubuntu/ intrepid-updates universe
# deb-src http://archive.ubuntu.com/ubuntu intrepid-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/ intrepid multiverse
# deb-src http://archive.ubuntu.com/ubuntu intrepid multiverse
# deb http://us.archive.ubuntu.com/ubuntu/ intrepid-updates multiverse
# deb-src http://archive.ubuntu.com/ubuntu intrepid-updates multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## 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/ intrepid-backports main restricted universe multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ intrepid-backports main restricted universe multiverse #Added by software-properties
# deb-src http://archive.ubuntu.com/ubuntu intrepid-backports main restricted universe 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 intrepid partner
deb-src http://archive.canonical.com/ubuntu intrepid partner

deb http://ports.ubuntu.com/ubuntu-ports/ intrepid-security main restricted
deb-src http://ports.ubuntu.com/ubuntu-ports/ intrepid-security main restricted
deb http://ports.ubuntu.com/ubuntu-ports/ intrepid-security universe
deb-src http://ports.ubuntu.com/ubuntu-ports/ intrepid-security universe
deb http://ports.ubuntu.com/ubuntu-ports/ intrepid-security multiverse
deb-src http://ports.ubuntu.com/ubuntu-ports/ intrepid-security multiverse
deb http://security.ubuntu.com/ubuntu/ intrepid-security universe main multiverse restricted
# deb http://us.archive.ubuntu.com/ubuntu/ intrepid-proposed restricted main multiverse universe
# deb-src http://us.archive.ubuntu.com/ubuntu/ intrepid-proposed restricted main multiverse universe
# deb http://us.archive.ubuntu.com/ubuntu/ intrepid main multiverse restricted universe
# deb-src http://us.archive.ubuntu.com/ubuntu/ intrepid restricted main multiverse universe #Added by software-properties
# deb http://us.archive.ubuntu.com/ubuntu/ intrepid main universe restricted multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ intrepid universe main multiverse restricted #Added by software-properties
# deb http://us.archive.ubuntu.com/ubuntu/ intrepid-updates universe main multiverse restricted
# deb-src http://us.archive.ubuntu.com/ubuntu/ intrepid-updates universe main multiverse restricted
# deb http://us.archive.ubuntu.com/ubuntu/ intrepid-proposed universe main multiverse restricted
# deb-src http://us.archive.ubuntu.com/ubuntu/ intrepid-proposed universe main multiverse restricted
# deb http://us.archive.ubuntu.com/ubuntu/ intrepid-backports universe main multiverse restricted
# deb-src http://us.archive.ubuntu.com/ubuntu/ intrepid-backports universe main multiverse restricted
# deb http://us.archive.ubuntu.com/ubuntu/ intrepid multiverse restricted universe main
# deb http://us.archive.ubuntu.com/ubuntu/ intrepid-updates restricted main multiverse universe
# deb http://us.archive.ubuntu.com/ubuntu/ intrepid-proposed restricted main multiverse universe
# deb http://us.archive.ubuntu.com/ubuntu/ intrepid-backports restricted main multiverse universe
# deb http://us.archive.ubuntu.com/ubuntu/ intrepid main universe restricted multiverse
# deb http://us.archive.ubuntu.com/ubuntu/ intrepid main universe restricted multiverse
# deb http://us.archive.ubuntu.com/ubuntu/ intrepid-updates main universe restricted multiverse
# deb http://us.archive.ubuntu.com/ubuntu/ intrepid-proposed main universe restricted multiverse
# deb http://us.archive.ubuntu.com/ubuntu/ intrepid universe restricted multiverse main


# deb http://us.archive.ubuntu.com/ubuntu/ intrepid-updates universe main multiverse restricted
# deb http://us.archive.ubuntu.com/ubuntu/ intrepid-proposed universe main multiverse restricted
# deb http://us.archive.ubuntu.com/ubuntu/ intrepid main universe restricted multiverse
deb http://ports.ubuntu.com/ intrepid main universe restricted multiverse

I planned to "comment out" the bolded red line and replace it with
deb http://ports.ubuntu.com/ubuntu-ports/ intrepid-security universe main multiverse restricted

How do I make sure that my changes are saved and taken into account when I
sudo aot-get update && apt-get dist-upgrade? ( if this what I have to do)

Much obliged for your time

Last edited by evdv; 08-06-2009 at 11:31 PM.
 
Old 08-07-2009, 12:55 PM   #4
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092

Rep: Reputation: 269Reputation: 269Reputation: 269
It looks like you just need to comment out the line. In the lines above it, you already have all four of those sections (universe, main, multiverse, and restricted -- they're just all on their own lines) from ports.ubuntu.com.

Just edit the file (with sudo or root privileges) and save it, then update apt and do a dist-upgrade.
 
Old 08-17-2009, 02:45 PM   #5
evdv
LQ Newbie
 
Registered: Aug 2009
Location: USA
Distribution: ubuntu 8.10
Posts: 4
Blog Entries: 1

Original Poster
Rep: Reputation: 0
I have been trying to 'Comment' a row in my sources.list and save it. The latter seems to be a problem
sudo vi /etc/apt/sources.list
I placed a '#' if from of the line: #deb http://security.ubuntu.com/ubuntu/ intrepid-security universe main multiverse restricted (the bolded red line in previous quote)
I use following command to save it :wq
When I list the content of /etc/apt/ I see that a new file has been created: sources.list.save

Then I removed the old sources.list and changed sources.list.save in sources.list
rm sources.list
rm sources.list.save sources.list

When updating my software I receive the same old message and when I edit my sources.list (new version, I thought!!) I noticed that '#" from the line I 'comment' out was not there anymore. In other words I right back at the beginning!
What am I doing wrong here?
Thx
E

Last edited by evdv; 08-17-2009 at 02:48 PM.
 
Old 08-17-2009, 04:25 PM   #6
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092

Rep: Reputation: 269Reputation: 269Reputation: 269
I don't know for sure, but I suspect that after you do :wq, vi is saving changes to sources.list and saving the old file (without the "#") as sources.list.save. Then you're deleting the new file and saving the old file back to sources.list.

Try doing a cat /etc/apt/sources.list after you make the change and see if the # is there. If it is, then you don't have to delete anything, the .save file is just a copy of the original file (before you changed it).
 
Old 08-17-2009, 10:25 PM   #7
evdv
LQ Newbie
 
Registered: Aug 2009
Location: USA
Distribution: ubuntu 8.10
Posts: 4
Blog Entries: 1

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by pljvaldez View Post
I don't know for sure, but I suspect that after you do :wq, vi is saving changes to sources.list and saving the old file (without the "#") as sources.list.save. Then you're deleting the new file and saving the old file back to sources.list.

Try doing a cat /etc/apt/sources.list after you make the change and see if the # is there. If it is, then you don't have to delete anything, the .save file is just a copy of the original file (before you changed it).
You are right vi is saving changes to sources.list and saving the old file (without the "#"). I was able to check that with the cat command as you suggested.
When I ran System > Administration > Software Sources however I got the same error with 4 message:

COULD NOT DOWNLOAD ALL REPOSITORY INDEXES
1- Failed to fetch http:// security.ubuntu.com/ubuntu/dist/intrepid-security/universe/binary-powerpc/Packages.gz 404 Not Found
2- .../main/...
3- .../multiverse/...
3- .../restricted/...

After this I ran cat /etc/apt/sources.list again and the "#" that neutralized my problem mysteriously disappeared again making this address active again.

Is there another way to make changes in the sources.list permanent?
Thx
E
 
Old 08-18-2009, 10:52 AM   #8
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092

Rep: Reputation: 269Reputation: 269Reputation: 269
Sorry, I don't know Ubuntu's GUI tools at all (I use aptitude from the command line on Debian). Can you change the sources in that "Software Sources" tool?

Last edited by pljvaldez; 08-18-2009 at 10:54 AM.
 
  


Reply

Tags
powerpc, sourceslist, ubuntu, update


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't stop the "Unable to Mount" dialogue (Ubuntu 8.10 Intrepid Ibex) DeekBeek Ubuntu 4 01-03-2009 02:13 PM
LXer: Ubuntu "Intrepid Ibex" available LXer Syndicated Linux News 0 10-25-2008 12:50 PM
LXer: Ubuntu 8.10 "Intrepid Ibex" (Alpha 6): first impressions LXer Syndicated Linux News 0 09-24-2008 12:00 PM
LXer: Ubuntu 8.10 "Intrepid Ibex" Alpha 1 LXer Syndicated Linux News 1 06-28-2008 05:18 PM
LXer: Mobile tops Ubuntu goals for "Intrepid Ibex" LXer Syndicated Linux News 0 02-21-2008 05:42 AM


All times are GMT -5. The time now is 06:53 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration