LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   intrepid, PS3, update sources list from "ubuntu" to "ports-ubuntu" (http://www.linuxquestions.org/questions/linux-newbie-8/intrepid-ps3-update-sources-list-from-ubuntu-to-ports-ubuntu-745597/)

evdv 08-06-2009 11:16 AM

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.

pljvaldez 08-06-2009 01:07 PM

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.

evdv 08-06-2009 08:51 PM

Quote:

Originally Posted by pljvaldez (Post 3633879)
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

pljvaldez 08-07-2009 12:55 PM

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.

evdv 08-17-2009 02:45 PM

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

pljvaldez 08-17-2009 04:25 PM

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).

evdv 08-17-2009 10:25 PM

Quote:

Originally Posted by pljvaldez (Post 3647125)
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

pljvaldez 08-18-2009 10:52 AM

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?


All times are GMT -5. The time now is 03:35 PM.