无法说服apt使用PPA版本而不是宇宙版本的软件包。

我正在尝试在树莓派上的MATE版本(focal; 20.04)中使用PPA版本的touchegg。PPA版本为2.0+,而Ubuntu Universe版本为1.1+。
PPA信息在此处:https://launchpad.net/~touchegg/+archive/ubuntu/stable/+packages 我执行以下操作:
sudo add-apt-repository ppa:touchegg/stable 

安装PPA似乎成功了。接下来是执行apt-get update命令。
/etc/apt/sources.list.d/touchegg-ubuntu-stable-focal.list文件中包含:
deb http http://ppa.launchpad.net/touchegg/stable/ubuntu focal main

我还把99-touchegg-repository放在/etc/apt/preferences.d中;它包含以下内容:
Package: touchegg

Pin: release o=LP-PPA-touchegg

Pin-priority: 450

然而,apt policy touchegg 仍然显示唯一可用的 touchegg 版本是宇宙中的版本。无论何时我执行 apt install touchegg,都会从宇宙中获取旧版本。
在Ubuntu MATE中如何使用PPA中的 touchegg 版本以及apt?

也在https://ubuntu-mate.community/t/cant-use-ppa-with-mate/24548上提问过(构建可见-https://launchpad.net/%7Etouchegg/+archive/ubuntu/stable/+packages) - guiverc
2你可以向维护者询问如何在ARM上启用PPA构建。以下是具体步骤:https://askubuntu.com/q/371339/124466 - Archisman Panigrahi
另外,如果我没记错的话,默认的 PIN 优先级是500,所以如果你使用450,它会比来自 universe 的软件包优先级低。 - muru
1相关的 GitHub 问题:https://github.com/JoseExposito/touchegg/issues/522 - Archisman Panigrahi
2个回答

那个PPA只有"amd64"的版本,这是与RP不同的架构。你需要一台Intel/AMD的电脑来使用它。
点击一个软件包以展开它,查看可用的版本。

2github发布页面上有一个armhf包。 - pLumo

更新 20210910:提到的 PPA 现在 有适用于 armhfarm64 的软件包。您可以删除 pin 文件,并使用以下命令像往常一样安装它们:

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

以下是回答的历史部分。
你在进行所有的步骤都是正确的。问题在于PPA只提供适用于amd64 CPU架构的软件包。请查看 PPA文件列表以确认。
我已在Launchpad上向“Touchégg”团队发去了一封带有对armhfarm64软件包构建请求的邮件。让我们等待他们的回应。
如果你急于处理事情,你可以通过以下命令从GitHub下载官方软件包
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

或者直接在RaspberryPi上手动编译此软件包。首先在“软件和更新”中启用源代码(deb-src存储库),然后执行以下命令:

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

谢谢。那完全说得通。 编译完成,软件开始执行。不幸的是,它似乎无法检测到任何手势。需要更多的调试时间。 - compilebunny
如果这个答案解决了你的问题,请考虑接受答案 - eis
1如果有什么问题无法解决,你可以在GitHub上创建一个错误报告。https://github.com/JoseExposito/touchegg - Archisman Panigrahi
这个回答很棒!不过,我在https://meta.stackexchange.com/questions/5234/how-does-accepting-an-answer-work上并没有看到应该有的勾选标记。也许我需要更多的“积分”才能“投票”?对于这个系统,我不太熟悉。 - compilebunny