Permission denied to add repository

Asked by peter.j

I have just installed Ubuntu 8.04 (so complete novice) and want to add the medibuntu respository. I went to
system / admininstration and provided my password to open software sources / third-party software. I select Add and get the input box "Enter the complete APT line of the repository that you want to add as source". On the APT line input I did a copy/paste of the address line as indicated in Ubuntu documentation but the "Add Source" button stays grey and inactive. I have tried varies way of providing the APT line input but the button stays inactive. I then tried /etc/apt/sources.list on the command line and got the response: Permission denied.
According to system / administration / users and groups my profile has all user privileges checked including "Administer the system". I am the only user defined besides root.

Following a quick and painless installation I have spent almost an entire day researching this problem but don't find answers in the Ubuntu documentation. What am I missing here? Thanks for any help...
peter.j

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
peter.j
Solved:
Last query:
Last reply:

This question was reopened

Revision history for this message
Isak Frants (isakfrants) said :
#1

How does the line you try to enter look like? address hardy deb ? Or just address?

Revision history for this message
peter.j (peter-jellemail) said :
#2

I got the instruction from the webpage:

https://help.ubuntu.com/community/Medibuntu

And the line details is:

sudo wget http://www.medibuntu.org/sources.list.d/hardy.list -O /etc/apt/sources.list.d/medibuntu.list

I did notice that in all the examples shown the line starts with deb https...

The medibuntu one starts with sudo wget https...
Should I still use the exact definition as shown or is one supposed to know what needs to be changed?

Revision history for this message
Isak Frants (isakfrants) said :
#3

Do the gui way you were trying to do and give the following line
deb http://packages.medibuntu.org/ hardy free non-free

Can you click now on "Add source" ?

Revision history for this message
peter.j (peter-jellemail) said :
#4

Indeed! It now added without any problem. Thanks!

As a complete new Ubuntu user it is worrying though that following step by step the procedures as set out in documentation doesn't work. Is there some approach needed that every Ubuntu user (besides me) is aware of to modify the instructions ?

Revision history for this message
peter.j (peter-jellemail) said :
#5

In the meantime I updated the list with available software after adding the medibuntu respository as per your suggestion and hit the following error message:

W: GPG error: http://packages.medibuntu.org hardy Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 2EBC26B60C5A2783

Does this mean the key is not available on my machine and I need to add this or is it not available from the repository host?

Revision history for this message
Isak Frants (isakfrants) said :
#6

Oh yes it does work, but things can be done in different ways. My way worked but as you can see you haven't got the GPG-key on your computer, but your tutorial says this:
sudo apt-get update && sudo apt-get install medibuntu-keyring && sudo apt-get update

What happens if you do that in a terminal? More errors after that?

I have to leave you now, I'll come back in a couple of hours! Cheers.

Revision history for this message
peter.j (peter-jellemail) said :
#7

Really appreciate you taking the time to educate a novice. I had seen the "instruction" in the manual to "Then, add the GPG Key" but didn't really know how to go about it. Giving the instruction on the Terminal command line gives the following results:

Hit http://archive.canonical.com hardy Release.gpg
Ign http://archive.canonical.com hardy/partner Translation-en_US
Hit http://be.archive.ubuntu.com hardy Release.gpg
Ign http://be.archive.ubuntu.com hardy/main Translation-en_US
Hit http://security.ubuntu.com hardy-security Release.gpg
Ign http://security.ubuntu.com hardy-security/main Translation-en_US
Ign http://be.archive.ubuntu.com hardy/restricted Translation-en_US
Ign http://be.archive.ubuntu.com hardy/universe Translation-en_US
Ign http://be.archive.ubuntu.com hardy/multiverse Translation-en_US
Hit http://be.archive.ubuntu.com hardy-updates Release.gpg
Ign http://be.archive.ubuntu.com hardy-updates/main Translation-en_US
Hit http://archive.canonical.com hardy Release
Ign http://be.archive.ubuntu.com hardy-updates/restricted Translation-en_US
Ign http://be.archive.ubuntu.com hardy-updates/universe Translation-en_US
Ign http://security.ubuntu.com hardy-security/restricted Translation-en_US
Ign http://security.ubuntu.com hardy-security/universe Translation-en_US
Ign http://security.ubuntu.com hardy-security/multiverse Translation-en_US
Hit http://security.ubuntu.com hardy-security Release
Ign http://packages.medibuntu.org hardy Release.gpg
Ign http://be.archive.ubuntu.com hardy-updates/multiverse Translation-en_US
Hit http://be.archive.ubuntu.com hardy Release
Hit http://be.archive.ubuntu.com hardy-updates Release
Hit http://archive.canonical.com hardy/partner Packages
Hit http://security.ubuntu.com hardy-security/main Packages
Hit http://archive.canonical.com hardy/partner Sources
Ign http://packages.medibuntu.org hardy/free Translation-en_US
Hit http://security.ubuntu.com hardy-security/restricted Packages
Hit http://security.ubuntu.com hardy-security/main Sources
Hit http://security.ubuntu.com hardy-security/restricted Sources
Hit http://be.archive.ubuntu.com hardy/main Packages
Hit http://security.ubuntu.com hardy-security/universe Packages
Hit http://security.ubuntu.com hardy-security/universe Sources
Hit http://security.ubuntu.com hardy-security/multiverse Packages
Hit http://security.ubuntu.com hardy-security/multiverse Sources
Hit http://be.archive.ubuntu.com hardy/restricted Packages
Hit http://be.archive.ubuntu.com hardy/main Sources
Hit http://be.archive.ubuntu.com hardy/restricted Sources
Hit http://be.archive.ubuntu.com hardy/universe Packages
Hit http://be.archive.ubuntu.com hardy/universe Sources
Hit http://be.archive.ubuntu.com hardy/multiverse Packages
Hit http://be.archive.ubuntu.com hardy/multiverse Sources
Ign http://packages.medibuntu.org hardy/non-free Translation-en_US
Hit http://be.archive.ubuntu.com hardy-updates/main Packages
Hit http://be.archive.ubuntu.com hardy-updates/restricted Packages
Hit http://be.archive.ubuntu.com hardy-updates/main Sources
Hit http://be.archive.ubuntu.com hardy-updates/restricted Sources
Hit http://be.archive.ubuntu.com hardy-updates/universe Packages
Hit http://be.archive.ubuntu.com hardy-updates/universe Sources
Hit http://be.archive.ubuntu.com hardy-updates/multiverse Packages
Hit http://be.archive.ubuntu.com hardy-updates/multiverse Sources
Ign http://packages.medibuntu.org hardy Release
Ign http://packages.medibuntu.org hardy/free Packages
Ign http://packages.medibuntu.org hardy/non-free Packages
Err http://packages.medibuntu.org hardy/free Packages
  503 Service Temporarily Unavailable [IP: 78.46.39.176 80]
Err http://packages.medibuntu.org hardy/non-free Packages
  503 Service Temporarily Unavailable [IP: 78.46.39.176 80]
W: Failed to fetch http://packages.medibuntu.org/dists/hardy/free/binary-i386/Packages.gz 503 Service Temporarily Unavailable [IP: 78.46.39.176 80]

W: Failed to fetch http://packages.medibuntu.org/dists/hardy/non-free/binary-i386/Packages.gz 503 Service Temporarily Unavailable [IP: 78.46.39.176 80]

E: Some index files failed to download, they have been ignored, or old ones used instead.
E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
peter@DD4600:~$

So the next questions:

1. Can I do any harm by trying the same command again to see if that fixes the 503 Service Temporarily Unavailable [IP: 78.46.39.176 80] issue.

2. I did have the add GUI Software Sources still open. Would that cause the error : Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable) and E: Unable to lock the administration directory

Revision history for this message
Tero Keinänen (kenkku) said :
#8

1. No, running sudo apt-get update just downloads the package lists from all the repositories and updates the local database.

2. I would say that having the Software Sources dialog open doesn't cause that, but I am not entirely sure. Check that you don't have any package managers running (Synaptic, Add/Remove packages..).

Revision history for this message
peter.j (peter-jellemail) said :
#9

Thanks for stepping in Tero. I closed everything, rebooted (old MS habit) and tried again. It did go further than the first attempt;

Hit http://archive.canonical.com hardy Release.gpg
Ign http://archive.canonical.com hardy/partner Translation-en_US
Hit http://be.archive.ubuntu.com hardy Release.gpg
Ign http://be.archive.ubuntu.com hardy/main Translation-en_US
Hit http://security.ubuntu.com hardy-security Release.gpg
Ign http://security.ubuntu.com hardy-security/main Translation-en_US
Ign http://security.ubuntu.com hardy-security/restricted Translation-en_US
Get:1 http://packages.medibuntu.org hardy Release.gpg [189B]
Hit http://archive.canonical.com hardy Release
Ign http://packages.medibuntu.org hardy/free Translation-en_US
Ign http://be.archive.ubuntu.com hardy/restricted Translation-en_US
Ign http://be.archive.ubuntu.com hardy/universe Translation-en_US
Ign http://be.archive.ubuntu.com hardy/multiverse Translation-en_US
Hit http://be.archive.ubuntu.com hardy-updates Release.gpg
Ign http://be.archive.ubuntu.com hardy-updates/main Translation-en_US
Ign http://be.archive.ubuntu.com hardy-updates/restricted Translation-en_US
Ign http://be.archive.ubuntu.com hardy-updates/universe Translation-en_US
Ign http://security.ubuntu.com hardy-security/universe Translation-en_US
Ign http://security.ubuntu.com hardy-security/multiverse Translation-en_US
Ign http://be.archive.ubuntu.com hardy-updates/multiverse Translation-en_US
Hit http://be.archive.ubuntu.com hardy Release
Hit http://security.ubuntu.com hardy-security Release
Ign http://packages.medibuntu.org hardy/non-free Translation-en_US
Hit http://be.archive.ubuntu.com hardy-updates Release
Get:2 http://packages.medibuntu.org hardy Release [9335B]
Hit http://archive.canonical.com hardy/partner Packages
Hit http://archive.canonical.com hardy/partner Sources
Hit http://be.archive.ubuntu.com hardy/main Packages
Hit http://security.ubuntu.com hardy-security/main Packages
Ign http://packages.medibuntu.org hardy Release
Hit http://be.archive.ubuntu.com hardy/restricted Packages
Hit http://be.archive.ubuntu.com hardy/main Sources
Hit http://be.archive.ubuntu.com hardy/restricted Sources
Hit http://be.archive.ubuntu.com hardy/universe Packages
Hit http://be.archive.ubuntu.com hardy/universe Sources
Hit http://be.archive.ubuntu.com hardy/multiverse Packages
Hit http://be.archive.ubuntu.com hardy/multiverse Sources
Hit http://security.ubuntu.com hardy-security/restricted Packages
Hit http://security.ubuntu.com hardy-security/main Sources
Hit http://security.ubuntu.com hardy-security/restricted Sources
Hit http://packages.medibuntu.org hardy/free Packages
Hit http://be.archive.ubuntu.com hardy-updates/main Packages
Hit http://be.archive.ubuntu.com hardy-updates/restricted Packages
Hit http://be.archive.ubuntu.com hardy-updates/main Sources
Hit http://be.archive.ubuntu.com hardy-updates/restricted Sources
Hit http://be.archive.ubuntu.com hardy-updates/universe Packages
Hit http://be.archive.ubuntu.com hardy-updates/universe Sources
Hit http://be.archive.ubuntu.com hardy-updates/multiverse Packages
Hit http://security.ubuntu.com hardy-security/universe Packages
Hit http://security.ubuntu.com hardy-security/universe Sources
Hit http://security.ubuntu.com hardy-security/multiverse Packages
Hit http://security.ubuntu.com hardy-security/multiverse Sources
Hit http://packages.medibuntu.org hardy/non-free Packages
Hit http://be.archive.ubuntu.com hardy-updates/multiverse Sources
Fetched 190B in 0s (566B/s)
Reading package lists... Done
W: GPG error: http://packages.medibuntu.org hardy Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 2EBC26B60C5A2783
W: You may want to run apt-get update to correct these problems
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  medibuntu-keyring
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 3448B of archives.
After this operation, 49.2kB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
  medibuntu-keyring
Install these packages without verification [y/N]? y
Err http://packages.medibuntu.org hardy/free medibuntu-keyring 2008.04.20
  503 Service Temporarily Unavailable [IP: 78.46.39.176 80]
Failed to fetch http://packages.medibuntu.org/pool/free/m/medibuntu-keyring/medibuntu-keyring_2008.04.20_all.deb 503 Service Temporarily Unavailable [IP: 78.46.39.176 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

What does this all mean?
It has been about a day that I get the error message 503.
Can/should I change location to try a different source?

Revision history for this message
peter.j (peter-jellemail) said :
#10

I have tried a third time and this time the server was available and it ran all the way through without error messages, finishing off with "Done".

Synaptic found and installed the Skype packages I was looking for and after that I could use Skype through the Application / Internet menu.

It a bit more involved than what I was hoping for, Ubuntu seems like a neat environment and I will continue to try and replace the MS systems I use with Ubuntu.

Thanks for your help - much appreciated.
Peter

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#11

In this days the medibuntu server has some issue, and you ( and i ) get the 503 error

So you must try in the next days....

Hope this helps