6

This question already has an answer here:

I've upgraded from 14.04 to 16.04. As per the upgrade instruction, third party sources were disabled. After the upgrade, I cannot find a possible way to enable those third party sources using command line instead of System Settings > Software & Updates > Other Software.

I need to do it on command line because changing it via Settings requires password of a Super Privileged user (idk if that's the exact term). I can do all of the sudo and sudo su stuffs in command line with my current login, even though I've upgraded to 16.04 using sudo do-release-upgrade (Weird right..!? idk why sysadmin set up that restriction in first place).

Also another possible solution I think of is to reinstall those packages again which will re-enable those sources I guess.

marked as duplicate by muru command-line May 18 '17 at 8:42

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • it's the same password as you use for sudo... – Zanna May 18 '17 at 8:38
  • @Zanna, Nope, I'm admin, but the super privileged requires password for sysadmin. – The Coder May 18 '17 at 8:39
7

I manage my sources manually from cli using a regular text editor like vim or nano.

The main sources.list is located here:

/etc/apt/sources.list

and most third party sources are at:

/etc/apt/sources.list.d/

you can simply use a text editor to edit and enable them (uncomment):

sudo nano /etc/apt/sources.list.d/sample-sources.list

there should be lines like:

# deb http://ppa-url.com/ubuntu trusty main

you should uncomment them (remove #):

deb http://ppa-url.com/ubuntu trusty main

then the save the edited file and run sudo apt update.

  • Updated the answer ;) – Ravexina May 18 '17 at 8:41
  • @Ravexina, one small qn, what do i do with those .distUpgrade and .save files? Like this one cwchien-gradle-trusty.list.distUpgrade, cwchien-gradle-trusty.list.save.. – The Coder May 18 '17 at 8:46
  • @TheCoder They should be backup files, leave them be there in case you messed something up. – Ravexina May 18 '17 at 8:48

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