为什么我无法在 Ubuntu 20.04 上获取 libevdev-dev 包?

为什么我无法在 Ubuntu 20.04 上获取 libevdev-dev 包?

我是 Linux 新手,在处理软件包时遇到了麻烦。我一直尝试运行“cmake”,但无法运行,因为我没有 libevdev 软件包。

~/joycond$ cmake .
-- Checking for module 'libevdev'

--   No package 'libevdev' found
CMake Error at /snap/cmake/876/share/cmake-3.20/Modules/FindPkgConfig.cmake:556 (message):
  A required package was not found
Call Stack (most recent call first):
  /snap/cmake/876/share/cmake-3.20/Modules/FindPkgConfig.cmake:778 (_pkg_check_modules_internal)
  CMakeLists.txt:10 (pkg_check_modules)


-- Configuring incomplete, errors occurred!
See also "/home/louis/joycond/CMakeFiles/CMakeOutput.log".

当我尝试运行时sudo apt install libevdev,无法找到它。

~$ sudo apt install libevdev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package libevdev

我在网上看到我需要的是 libevdev-dev,但是......

~$ sudo apt install libevdev-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package libevdev-dev

如果有人能提供帮助,我将不胜感激,因为我现在完全迷失了。

答案1

对于有同样问题的任何新手,请确保您没有意外取消选中“软件和更新”中的“从互联网下载”......我感到很惭愧。

相关内容