I have an old package of mantid (v. 3.9.0), I am having trouble to update this to the latest version. While trying to update the mantid package via apt, I get the following error message when I am trying the wget
Another method I tried was to download the Debian file and install it through Software Centre, but it shows an error message saying ‘Bad Quality package’ error. Although, I can install the ‘.deb’ file by running dpkg, I am concerned that it might break some functionalities in my OS.
From the error above it suggests that the wget failed because of the proxy server and could not provide the data to apt-key-add. What does wget --quiet --proxy-user=harishs --proxy-password=*** -O - http://apt.isis.rl.ac.uk/2E10C193726B7213.asc give you. It should give:
If you can’t get the wget coomand to work then you can paste the above content into a file, key.asc, and run sudo apt-add-key key.asc.
The tool we use to create our debian packages unfortunately has some known issues with older versions so these warnings are expected but can be ignored safely.
This shows no messages, does it mean the key is added? Nevertheless, while trying to upgrade it with apt-get fails once again:
> harish@harish-desktop:~$ sudo apt-get install mantid
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> The following extra packages will be installed:
> librdkafka++1 librdkafka1
> The following NEW packages will be installed:
> librdkafka++1 librdkafka1
> The following packages will be upgraded:
> mantid
> 1 upgraded, 2 newly installed, 0 to remove and 5 not upgraded.
> Need to get 230 MB/230 MB of archives.
> After this operation, 14.5 MB of additional disk space will be used.
> Do you want to continue? [Y/n] y
> WARNING: The following packages cannot be authenticated!
> mantid
> Install these packages without verification? [y/N] y
> Err httpapt.isis.rl.ac.uk/ trusty/main mantid amd64 3.11.0
> 403 Forbidden
> W: Duplicate sources.list entry httpapt.isis.rl.ac.uk/ trusty/main amd64 Packages (/var/lib/apt/lists/apt.isis.rl.ac.uk_dists_trusty_main_binary-amd64_Packages)
> W: You may want to run apt-get update to correct these problems
> E: Failed to fetch httpapt.isis.rl.ac.uk/pool/main/m/mantid/mantid_3.11.0-0ubuntu1~trusty1_amd64.deb 403 Forbidden
>
> E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
PS: I removed :// after every http, since I can’t post links being a new user. I also tried adding the key manually and tried updating and installing, still doesn’t work, it pops up the same error.
I would have expected that to output the block of text I posted above and not nothing. It looks like you have a proxy that might be causing an issue for some reason. Could you try running curl -v -U user:pass -x proxy:port --url http://apt.isis.rl.ac.uk/2E10C193726B7213.asc where you relace user:pass with your proxy login and proxy:port with your proxy address and port and see what happens?
I don’t think the key has been added given the warning from apt install. I was hoping to get more verbose detail from that last curl command on the error it is running into.
The other option here is to go with the graphical based installer and ignore the warnings as it is installing the same package.
The error message at the bottom seems to suggest an access control problem by the service provider. I’ve tried this from RAL and someone from ILL has also tried without error. Would you be able to contact your network administrator as it looks like something is blocking it at your end?
Ok, I will try to contact them and let you know. Thank you, meanwhile, Will it be fine if I install using the Debian file by ignoring the error messages?