Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

During the Saucy update it said that it would disable some packages, and it did.

In Software & Updates under Other Software a lot of my repositories are either "disabled on upgrade to saucy" or end in raring. IE:

Http://ppa.launchpad.net/webupd8team/java/ubuntu
Distribution: raring
Componets: main
Comment: disabled on upgrade to saucy

Do I just change the distribution to saucy? Do I have to do that to all of them?

share|improve this question
    
I wrote a sed script that removes the hash character: askubuntu.com/questions/111645/… –  klaus se Nov 24 '13 at 18:02
add comment

2 Answers

up vote 2 down vote accepted

I wrote a bash script that removes the leading hash character from all files in sources.list.d that were disabled during the upgrade. I also posted the same code in What's the best way to re-enable ppa's/repos after an upgrade?.

The following code is for upgrading raring sources to saucy.

If you want to keep the suffix # disabled on upgrade to ..., use

for f in /etc/apt/sources.list.d/*.list; do sudo sed -i 's/raring/saucy/g' $f; sudo sed -i 's/^# \(.*disabled on upgrade to.*\)/\1/g' $f;done

if you want to delete the suffix # disabled on upgrade to ..., use

for f in /etc/apt/sources.list.d/*.list; do sudo sed -i 's/raring/saucy/g' $f; sudo sed -i 's/^# \(.*\) # disabled on upgrade to.*/\1/g' $f;done
share|improve this answer
    
Can you re-post it here please? If that other question is removed your answer here will no longer be helpful. –  Tom Brossman Nov 24 '13 at 18:50
add comment

I believe the answer is a few commands. You do have to re-check which ones you want (probably sticking to the ones that are commented as "Disabled on upgrade to saucy.")

sudo sed -i 's/raring/saucy/g' /etc/apt/sources.list
sudo apt-get update && sudo apt-get dist-upgrade
sudo apt-get upgrade 
share|improve this answer
2  
That only applies to sources.list rather than all the ppas listed in /etc/apt/sources.list.d/. The correct form is sudo sed -i 's/raring/saucy/g' /etc/apt/sources.list.d/*. However, not all PPAs are updated for saucy yet, so you may want to actually set these as raring to use them. –  mmstick Oct 19 '13 at 7:21
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.