GPG key trouble
Added by Jon Steckelberg over 9 years ago
Hi all, I am trying to switch to the 4.0.X. repository per the wiki entry but I am having problems with the GPG key. I am using Linux Mint 17.1 and get the following error.
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 379CE192D401AB61
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.kVhH6UCFlF --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyring /etc/apt/trusted.gpg.d/steam.gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 379CE192D401AB61
gpg: requesting key D401AB61 from hkp server keyserver.ubuntu.com
gpg: no writable keyring found: eof
gpg: error reading `[stream]': general error
gpg: Total number processed: 0
Any help appreciated.
Thanks
Jon
Replies (9)
RE: GPG key trouble - Added by Dreamcat 4 over 9 years ago
Jon Steckelberg wrote:
Executing: gpg --no-default-keyring --homedir /tmp/tmp.kVhH6UCFlF --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyring /etc/apt/trusted.gpg.d/steam.gpg
gpg: no writable keyring found: eof
^^ Look there.
Something is wrong with either:
- Your user account is not root - so it cannot write to '/etc/apt/*' folder
- Your $HOME directory is not set to that of any regular user.
RE: GPG key trouble - Added by Dreamcat 4 over 9 years ago
Ok. I think we didn't make clear in the instructions to use 'sudo apt-key adv'.
Those pages have been corrected now.
RE: GPG key trouble - Added by Jon Steckelberg over 9 years ago
Yep, that worked.
Saw the page updated also.
Thanks
RE: GPG key trouble - Added by Dreamcat 4 over 9 years ago
So can you please confirm for us:
Do the new 'trusty' .deb files work OK in Linux Mint 17.1 Cinnamon / Rebecca ?
We are assuming it's no problems, same as Ubuntu.
RE: GPG key trouble - Added by Jon Steckelberg over 9 years ago
Actually, I am not sure yet I had installed 4.1.18 using the "unstable Utopic Main". but am now trying to switch to the stable branch. I have the old repository disable and the new one installed. Now the GPG key is fixed but I am still sitting at the 4.1.18, which works but I want to stick with the stable 4.0.X. Is there something I should do to force my system to update to 4.0.X?
Thanks
RE: GPG key trouble - Added by Dreamcat 4 over 9 years ago
Well you cannot 'upgrade' from a higher version to a lower one. Just remove the old one first. It does not seem to matter the sources.list at the time. Just do an apt-get update afterwards.
This has been working for me on ubuntu:
sudo apt-get remove tvheadend
- then remove 'unstable' line from your sources.list
sudo apt-get update
- add tvheadend 'stable' to sources.list
sudo apt-get update
sudo apt-get install tvheadend
RE: GPG key trouble - Added by Jon Steckelberg over 9 years ago
Will I lose my setup in tvheadend, by doing the downgrade?
I did the upgrade on my main computer at home running Mint 17.1 and it works just fine.
thanks
Jon
RE: GPG key trouble - Added by Prof Yaffle over 9 years ago
It's a little tortuous, perhaps, but you can specify a version to install. So, if you have two repos defined (say, 4.0 and 4.1) then apt-get update
followed by apt-cache policy tvheadend
will give you a list of all candidate versions from both repos. You can then apt-get install tvheadend=version
to install the specific version you want from either repository. Once you're happy, then removing the 4.1 repo and running apt-get update
again will leave you on the pre-stable branch for future apt-get upgrade
updates.
If you uninstall and reinstall, I believe your settings should survive, as there's specifically an apt-get purge
command that's designed to completely remove a package, config and all. However, I'd make sure you have a good backup first, just in case (make sure you preserve permissions and ownership, so backup either as hts or as root and use cp -a
('archive')). That leaves you free to try the above approach or the un/reinstall method.
If you need to restore, shut down the tvheadend service, restore the files, then restart it.
RE: GPG key trouble - Added by c128 m over 9 years ago
Jon Steckelberg wrote:
Will I lose my setup in tvheadend, by doing the downgrade?
I did the upgrade on my main computer at home running Mint 17.1 and it works just fine.
I did something similar here:
https://tvheadend.org/boards/5/topics/16508?r=16526#message-16526
...nothing serious, but something to be aware of (if you see it).