PDA

View Full Version : [SOLVED] Adding to repository



rakesh343
January 13th, 2015, 08:50 AM
I've mistakenly deleted Canonical from my repository. How to add them back?

sudodus
January 13th, 2015, 10:20 AM
The easiest way is to install Synaptic via the Software Center, and then use Synaptic to check which repositories are install and add those that you want. Click re-read to update the list of available packages etc.

rakesh343
January 13th, 2015, 11:20 AM
How to add addresses in the APT Line in the 'Software & Updates' Dialog Box? I want to added Canonical in "Other Software".

sudodus
January 13th, 2015, 11:46 AM
Do you mean 'Canonical Partners'? - there is a box that you can tick in the previous window.

Or do you mean only 'Canonical'? - I don't know if there is such a repository.

Please tell me what you want - for example a program package that is included in the repository you want to use.

rakesh343
January 13th, 2015, 03:33 PM
I was talking about this:

Go to Software &Updates> Other Software> Add...
In the dialog box, APT Line address is asked.

I've typed:
deb http://archice.canonical.com/ubuntu trusty partner


This has started showing the canonical partners options that were mistakenly removed. Hope this is alright now???

Karlchen
January 13th, 2015, 03:40 PM
Hello, rakesh343.


I've mistakenly deleted Canonical from my repository. How to add them back?Please, open a terminal window. Execute the command
inxi -r This will enumerate the names of all of your sources.list files and their content.
Post the complete screen output here, please.

I assume that in the main Ubuntu file /etc/apt/sources.list the following line will be absent:
deb http://archive.canonical.com/ubuntu trusty partner Note: the string trusty refers to Ubuntu 14.04. In case you use a different Ubuntu version, trusty will have to be replaced by the corresponding nickname, e.g. by vivid for Ubuntu 14.10.

In order to add this line back to the file /etc/apt/sources.list, you will have to edit the file with root permissions.
sudo gedit /etc/apt/sources.list Add the missing line as the last line and save the file.

HTH,
Karl
--
Oh, I see our posts almost crossed. Yep, your line looks all right.

rakesh343
January 13th, 2015, 04:17 PM
Thanks Karlchen,

It seems so. :-)

But still I got to learn something about the relatioship between the GUI and command line method. :-)

By the way, my system does not have 'inxi' installed. Should I?

sudodus
January 13th, 2015, 04:24 PM
You can run synaptic and look at the windows for repositories. You will find 'Canonical Partners' - there is a box that you can tick in the previous window (and it should be ticked now, that you have that repository included in your setup.

It takes some time to get used to all these things and to identify the items behind the curtains (via command line tools) and the corresponding graphical interface. You are welcome to ask and discuss about such things whenever you need it in the future :-)

Finally, please click on Thread Tools at the top of the page and mark this thread as SOLVED

rakesh343
January 13th, 2015, 04:27 PM
Thanks Karlchen for the support and encouragement. I'll certainly try to learn.
I'm marking it asSOLVED now. :-)

Karlchen
January 14th, 2015, 01:41 PM
Hello, rakesh343.

Maybe inxi does not come with Ubuntu 14.04 by default. But it can be got from the software repositories. As I found out how useful it can be whenever you want to get information about various aspects of your system, I added it to my Ubuntu 14.04.

Cheers,
Karl