Closed smurphos closed 4 years ago
Subsequent to raising this issue the official command format for adding OBS repo keys has been changed. The new command format is
curl -fsSL https://download.opensuse.org/repositories/home:ungoogled_chromium/Ubuntu_Focal/Release.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/home:ungoogled_chromium.gpg > /dev/null
This still results in breakage in Mint and PPAs can't be added after running this command.
The new command format works fine in Ubuntu.
If you run apt-key list
after running the command from above comment (also on Ubuntu 20.04) it doesn't list the added keyfile. Removing ':' from the filename of the keyfile in /etc/apt/trusted.gpg.d/
makes it work (apt-key list
and adding PPAs). I can't say why Ubuntu's add-apt-repository allows for ':' in filenames in /etc/apt/trusted.gpg.d/
while standard APT commands like apt-key don't. OBS should probably not instruct to use ':' in filenames if standard APT commands don't support that.
That said it would be nice if mintsources and included add-apt-repository / apt-add-repository could handle filenames with invalid characters in them just as Ubuntu's add-apt-repository does.
@xenopeek - I'm not sure that modifying the file name in the OBS key install command is the ideal solution for Mint.
After
echo 'deb http://download.opensuse.org/repositories/home:/ungoogled_chromium/Ubuntu_Focal/ /' | sudo tee /etc/apt/sources.list.d/home:ungoogled_chromium.list
curl -fsSL https://download.opensuse.org/repositories/home:ungoogled_chromium/Ubuntu_Focal/Release.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/ungoogled_chromium.gpg > /dev/null
apt update - OK apt install ungoogled-chromium - OK apt-key list - OK adding a PPA - OK Key listed in Software Sources GUI - Not OK
Instead ( after sudo rm /etc/apt/trusted.gpg.d/ungoogled_chromium.gpg
from last test)
echo 'deb http://download.opensuse.org/repositories/home:/ungoogled_chromium/Ubuntu_Focal/ /' | sudo tee /etc/apt/sources.list.d/home:ungoogled_chromium.list
wget -nv https://download.opensuse.org/repositories/home:ungoogled_chromium/Ubuntu_Focal/Release.key -O /tmp/home:ungoogled_chromium.asc; sudo apt-key add /tmp/home:ungoogled_chromium.asc
apt update - OK apt install ungoogled-chromium - OK apt-key list - OK adding a PPA - OK Key listed in Software Sources GUI - OK
Thanks for sticking with it. This indeed fixes the issue entirely. I replaced the wget command with bit shorter wget -nv https://download.opensuse.org/repositories/home:ungoogled_chromium/Ubuntu_Focal/Release.key -O - | sudo apt-key add -
and that gives the same result: key is listed in mintsources and PPAs can be added after.
I think we can close this one?
Hmmm, this will likely cause quite a bit of grief to people adding OBS repos. I (very partially only) noticed it few days ago with smplayer from obs. Thought the key most likely expired or something, really didn't paid any attention whatsoever. Next day i saw the instructions for adding the key were updated, ah nice, here we are. By sheer habit, i ran apt-key list afterwards, noticed such wasn't listed...ehhm, what? Figured it must be some silly glitch with illegal characters, renamed as smplayerdev.gpg instead of home:smplayerdev.gpg, all seemed fine then.
But it certainly neither crossed my mind that this is both a wider issue with OBS at the moment, nor did it happened that i tried adding some other ppa in-between before actually renaming such.
...from a very very quick look, behavior also doesn't look exactly the same, with older Mint 18.3 & mintsources 1.7.2 gui...
After
echo 'deb http://download.opensuse.org/repositories/home:/ungoogled_chromium/Ubuntu_Focal/ /' | sudo tee /etc/apt/sources.list.d/home:ungoogled_chromium.list
curl -fsSL https://download.opensuse.org/repositories/home:ungoogled_chromium/Ubuntu_Focal/Release.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/ungoogled_chromium.gpg > /dev/null
apt update - OK apt install ungoogled-chromium - OK apt-key list - OK adding a PPA - OK Key listed in Software Sources GUI - Not OK
...hmmm, seems to be all OK here. Someone further broke something in between?... ;-)
@xenopeek - I think it's worth keeping open if only to work out why the behaviour with the current OBS instructions and your adjusted version on Ubuntu 20.04 is different from Mint 20 - specifically the difference between the Software Sources GUI and Ubuntu's Software and Updates GUI, and why the current OBS instructions break PPA's on Mint but not Ubuntu.
On Ubuntu using the current OBS instructions
apt update - OK apt install ungoogled-chromium - OK apt-key list - not OK adding a PPA - OK Key listed in Software and Updates GUI - OK (but can't be removed via the GUI)
Instead using the adjusted command to remove the : curl -fsSL https://download.opensuse.org/repositories/home:ungoogled_chromium/Ubuntu_Focal/Release.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/ungoogled_chromium.gpg > /dev/null
apt update - OK apt install ungoogled-chromium - OK apt-key list - OK adding a PPA - OK Key listed in Software and Updates GUI - OK
It seems OBS is working on it. https://github.com/openSUSE/software-o-o/issues/842
Hi,
Noted this issue testing with installing ungoogled-chromium on Mint 20. Also tested on Ubuntu 20.04 and the steps taken do not cause the same issue so think this is a Mint specific bug. There are reports popping up on the forum of users with a similar problem having added an OBS repo to their sources.
To reproduce follow the official instructions to add some OBS repo, and it's signing key, and then try to add a PPA. Example output below is for ungoogled-chromium followed by adding the keepassxc PPA.
Some reports from the forum from today - https://forums.linuxmint.com/viewtopic.php?f=47&t=323018 https://forums.linuxmint.com/viewtopic.php?f=90&t=322993 https://forums.linuxmint.com/viewtopic.php?f=18&t=322612