Ошибка в Ubuntu 20.04 LTS && система не может найти пакет pi-bluetooth

Я новичок в Ubuntu и хотел бы установить pi-bluetooth для своих проектов, но не могу. Я просмотрел несколько форумов, но не получил точного ответа на свой конкретный запрос. Я использую Ubuntu 20.04.2 LTS в подсистеме Windows для Linux (WSL). Когда я использую команду sudo apt update && sudo apt upgrade, я получаю:

Hit:1 http://security.ubuntu.com/ubuntu focal-security InRelease
Hit:2 http://archive.ubuntu.com/ubuntu focal InRelease
Hit:3 http://archive.raspberrypi.org/debian jessie InRelease
Err:4 http:/ focal InRelease
  Could not resolve 'dists'
Hit:5 http://archive.ubuntu.com/ubuntu focal-updates InRelease
Get:6 http://archive.ubuntu.com/ubuntu focal-backports InRelease [101 kB]
Fetched 101 kB in 1s (136 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
3 packages can be upgraded. Run 'apt list --upgradable' to see them.
N: Skipping acquire of configured file 'main/binary-amd64/Packages' as repository 'http://archive.raspberrypi.org/debian jessie InRelease' doesn't support architecture 'amd64'
N: Skipping acquire of configured file 'ui/binary-amd64/Packages' as repository 'http://archive.raspberrypi.org/debian jessie InRelease' doesn't support architecture 'amd64'
W: Failed to fetch http://dists/focal/InRelease  Could not resolve 'dists'
W: Some index files failed to download. They have been ignored, or old ones used instead.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  bluetooth bluez bluez-obexd
3 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 1151 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] `Y`
Get:1 http://security.ubuntu.com/ubuntu focal-security/main amd64 bluez amd64 5.53-0ubuntu3.2 [979 kB]
Get:2 http://security.ubuntu.com/ubuntu focal-security/universe amd64 bluetooth all 5.53-0ubuntu3.2 [3152 B]
Get:3 http://security.ubuntu.com/ubuntu focal-security/main amd64 bluez-obexd amd64 5.53-0ubuntu3.2 [169 kB]
Fetched 1151 kB in 0s (3005 kB/s)
(Reading database ... 32412 files and directories currently installed.)
Preparing to unpack .../bluez_5.53-0ubuntu3.2_amd64.deb ...
Unpacking bluez (5.53-0ubuntu3.2) over (5.53-0ubuntu3.1) ...
Preparing to unpack .../bluetooth_5.53-0ubuntu3.2_all.deb ...
Unpacking bluetooth (5.53-0ubuntu3.2) over (5.53-0ubuntu3.1) ...
Preparing to unpack .../bluez-obexd_5.53-0ubuntu3.2_amd64.deb ...
Unpacking bluez-obexd (5.53-0ubuntu3.2) over (5.53-0ubuntu3.1) ...
Setting up bluez-obexd (5.53-0ubuntu3.2) ...
Setting up bluez (5.53-0ubuntu3.2) ...
invoke-rc.d: could not determine current runlevel
 * Reloading system message bus config...                                                                               Failed to open connection to "system" message bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
invoke-rc.d: initscript dbus, action "force-reload" failed.
invoke-rc.d: could not determine current runlevel
Setting up bluetooth (5.53-0ubuntu3.2) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for dbus (1.12.16-2ubuntu2.1) ...
Processing triggers for systemd (245.4-4ubuntu3.6) ...

И использую команду sudo apt install pi-bluetooth , я получаю:

Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package pi-bluetooth

Чтобы Чтобы решить проблему с пакетом, я использую эту ссылку , но у меня ничего не работает.

Кто-нибудь может мне помочь!?

-1
задан 17 June 2021 в 21:39

1 ответ

Пакет pi-bluetooth находится в Ограниченном кармане репозиториев Ubuntu.

  • "Ограниченный" означает, что он содержит несвободное программное обеспечение (не с открытым исходным кодом). Проприетарное программное обеспечение также называют "несвободным".

Однако он доступен ТОЛЬКО для архитектур arm64 и armhf, используемых для Raspberry Pis. Обычная amd64, используемая в большинстве настольных систем, не будет работать; это неправильная архитектура.

  1. Добавьте ограниченный карман
  2. Поскольку вы только что изменили исходники, обновите базу данных доступных пакетов
  3. Установите программу

Вот три шага, по порядку:

sudo add-apt-repository restricted
sudo apt update
sudo apt install pi-bluetooth
0
ответ дан 28 July 2021 в 11:27

Другие вопросы по тегам:

Похожие вопросы: