Unable to convince apt to use the PPA version of a package rather than the universe version
Solution 1:
That PPA only has "amd64" builds, which is a different architecture from RP. You'll need an Intel/AMD computer to use it.
To see what builds are available, click a package to expand it.
Solution 2:
Update 20210910: the mentioned PPA now has packages for both armhf and arm64. You can remove pin-file and install them as usual using commands below:
sudo rm /etc/apt/preferences.d/99-touchegg-repository
sudo add-apt-repository ppa:touchegg/stable
sudo apt-get update
sudo apt-get install touchegg
Below is historical part of the answer.
You are doing all the steps correctly. The problem here is that PPA provides packages only for amd64 CPU architecture. See PPA file-listing for confirmation.
I wrote a message to “Touchégg” team on launchpad with request for armhf and arm64 package builds. Let's wait for reaction.
If you are in hurry - download official packages from GitHub by using commands below:
cd ~/Downloads
# for arm64
wget -c https://github.com/JoseExposito/touchegg/releases/download/2.0.11/touchegg_2.0.11_arm64.deb
sudo apt-get install ./touchegg_2.0.11_arm64.deb
# for armhf
wget -c https://github.com/JoseExposito/touchegg/releases/download/2.0.11/touchegg_2.0.11_armhf.deb
sudo apt-get install ./touchegg_2.0.11_armhf.deb
Or compile this package manually directly on RaspberryPi. At first enable source code (deb-src
repositories) in Software and Updates, then execute commands below:
sudo apt-get update
sudo apt-get build-dep touchegg
sudo apt-get install git build-essential cmake libcairo2-dev libgtk-3-dev libinput-dev libpugixml-dev libudev-dev libxrandr-dev
cd ~/Downloads
git clone https://github.com/JoseExposito/touchegg.git -b 2.0.11
cd touchegg
dpkg-buildpackage -uc -us
sudo apt-get install ../touchegg_2.0.11_arm*.deb