How to enable Disabled third party sources from command line after upgrade [duplicate]

Solution 1:

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.