Ubuntu – Fingerprint-gui in 18.04

18.04fingerprint readerrepository

I'm trying to get fingerprint scanner working but cannot even add repository. I'm new to ubuntu from fedora, maybe I'm doing something wrong, since others seems to be able do that half of year ago …

so here is this answer: Using Fingerprint reader in 16.04

but first step:

sudo add-apt-repository ppa:fingerprint/fingerprint-gui

LSB codename: 'bionic'.
This codename isn't currently supported.
Please check your LSB information with "lsb_release -a".

and then:

lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.1 LTS
Release:    18.04
Codename:   bionic

am I doing anything wrong?

EDIT:
so I tried to avoid add-apt-repository command.

I added file /etc/apt/sources.list.d/fingerprint.list with content

deb [arch=amd64] http://ppa.launchpad.net/fingerprint/fingerprint-gui/ubuntu bionic contrib

and then did apt update with errors:

Get:6 http://ppa.launchpad.net/fingerprint/fingerprint-gui/ubuntu bionic InRelease [15,4 kB]     
Hit:10 http://security.ubuntu.com/ubuntu bionic-security InRelease                               
Err:6 http://ppa.launchpad.net/fingerprint/fingerprint-gui/ubuntu bionic InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY EFD5FA852F20733F
Reading package lists... Done 
W: GPG error: http://ppa.launchpad.net/fingerprint/fingerprint-gui/ubuntu bionic InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY EFD5FA852F20733F
E: The repository 'http://ppa.launchpad.net/fingerprint/fingerprint-gui/ubuntu bionic InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

EDIT2: so IIUC it seems, that there is missing some public key. How can I verify, that repository gpg is OK? I'd like to do that prior to blindly adding public key using:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3C962022012520A0 
sudo apt-get update

Best Answer

I know this question is a bit old, and you may have already fixed it, but I've ran through this issue as well, and it took me a couple hours to find out what the hell was happening and what should be done to fix it.

Firstly, a quick question: Did you install Cinnamon Flavour in your Ubuntu distro? (I bet you did)

If so, continue this reading, please.

I wrote a README, as follows, describing what to do to fix it. Hope it'll help others as well! Let me know if you have any questions.

What is this?

This is a tutorial to fix your Cinnamon 4.0 installation on your Ubuntu 18.04 LTS, in case you lost your Software & Updates application, and can't run it through terminal with sudo software-properties-gtk, and neither commands such as sudo add-apt-repository PPA work.

You are probably encountering the following issue when trying to run any of these commands:

LSB codename: 'bionic'.
This codename isn't currently supported.
Please check your LSB information with "lsb_release -a".

Why is this happening?

When you installed Cinnamon through a PPA repository, it also installed a package called mintsources. This package essentially controls the Software Sources package, which is a Linux Mint version of Software & Updates.

This means your Ubuntu version of software-properties-common, software-properties-gtk and python3-software-properties gets replaced by mintsources.

So when you try to run any command that depends on any of these packages, they will try to find what is your Mint distribution, on the folder "/usr/share/mintsources/", and output an error in case your LSB codename differs from any of the existing distros in the folder. See source: mintsources.py.

How To

Undoing this is pretty simple, altough a little difficult to find the solution on the internet.

First off, download the three official packages of Ubuntu into a temporary folder, by running the following commands:

$ mkdir /tmp/cinnamon-fix/
$ cd /tmp/cinnamon-fix/
$ wget http://archive.ubuntu.com/ubuntu/pool/main/s/software-properties/software-properties-gtk_0.96.24.32.1_all.deb http://archive.ubuntu.com/ubuntu/pool/main/s/software-properties/software-properties-common_0.96.24.32.1_all.deb http://archive.ubuntu.com/ubuntu/pool/main/s/software-properties/python3-software-properties_0.96.24.32.1_all.deb

By the time this README was written, these were the latest versions of each package, according to the sources:

Now you should remove the faulty packages:

$ sudo apt remove --purge software-properties-gtk software-properties-common python3-software-properties -y

Last, remove mintsources package so it doesn't replace the packages you are going to install by its Mint version, and install them through dpkg:

PS: make sure you are inside our previously created folder "/tmp/cinnamon-fix/"

$ sudo apt autoremove mintsources -y
$ sudo dpkg -i *

If the first command tells you this action could be potentially harmful, don't be afraid, you can safely continue this.

To make sure a sudo apt update followed by sudo apt upgrade won't force mintsources to be reinstalled and break your system again, you should now remove the PPA repository through regular Software & Updates package.

Only add it again in case you really need to update something related to this PPA, but be aware you'll have to run through this process again.

Done! :)

Additional info at https://forum.level1techs.com/t/upgrading-to-cinnamon-4-0-on-18-04-dont-forget-one-package/135561. Many thanks to the user FurryJackman.

Related Question