Anydesk error while loading shared libraries libpolkit gobject 1 so 0 wrong elf class elfclass64

Anydesk error while loading shared libraries libpolkit gobject 1 so 0 I am a new user of Ubuntu (less than 24hrs in) and failed to install my first app on this OS. After some effort i have managed to install a 64bit OS on my Raspberry Pi 4 4GB using a Ubuntu Server 20.04 […]

Содержание

  1. Anydesk error while loading shared libraries libpolkit gobject 1 so 0
  2. Thread: Anydesk install in 20.04 64bit on a Pi 4
  3. Anydesk install in 20.04 64bit on a Pi 4
  4. Re: Anydesk install in 20.04 64bit on a Pi 4
  5. Raspberry-pi4 Anydesk problem with libpolkit-gobject-1.so.0
  6. Ensure AV Gear Plays Nice on the Corporate Network
  7. 6 Replies
  8. Read these next.
  9. poor wifi, school’s third floor
  10. Need help crafting a job posting for an IT Pro
  11. Snap! — AI Eye Contact, Mine Batteries, Headset-free Metaverse, D&D Betrayal
  12. Spark! Pro series – 13th January 2023
  13. Ошибка error while loading shared libraries
  14. Что означает error while loading shared libraries?
  15. Как исправить ошибку?
  16. 1. Библиотека не установлена
  17. 2. Библиотека находится не в том каталоге
  18. 3. Неверная версия библиотеки
  19. Выводы

I am a new user of Ubuntu (less than 24hrs in) and failed to install my first app on this OS. After some effort i have managed to install a 64bit OS on my Raspberry Pi 4 4GB using a Ubuntu Server 20.04 for Raspberry Pi image and installed lubuntu (sudo apt-get install lubuntu-desktop).
In the OS, Settings -> About

Processor: blank
Graphics: llvmpipe (LLVM 9.0.1, 128 bits)
Disk Capacity: Unknown
OS Name: Ubuntu 20.04 LTS
OS Type: 64-bit

Which i find confusing because i think it is an ARM processor but requires DEB install files right? So i head over to Anydesk but the Debian/Ubuntu/Mint (64bit)* file gives the error:
Error: Wrong architecture ‘amd64’

So i head to the Anydesk for Raspberry Pi download** this time but get the error:
Error: Wrong architecture ‘armhf’

I feel silly since there is something obvious i am missing. I just don’t know what. I will need to install many apps and I’m stuck at my first hurdle. Any help would be appreciated.

* https://anydesk.com/en/downloads/linux
(https://anydesk.com/en/downloads/linux)** https://anydesk.com/en/downloads/raspberry-pi

armhf arm hard-float is the name given to the Debian port for ARM 32-bit versions (someone please correct me if I am wrong).
At least this link (https://www.debian.org/ports/arm/) clearly mentions the same:

The newer ARM hard-float (https://wiki.debian.org/ArmHardFloatPort) (armhf) port supports newer, more powerful 32-bit devices using version 7 of the ARM architecture specification.

If this is true, you can try a 32-bit deb file and see if it installs.

I am not sure, but, should there be an ARM variant of the binary file?

I am not sure, but, should there be an ARM variant of the binary file?

Yes, it should and that’s the problem. ‘i384’ or ‘amd64’ packages cannot be installed in ARM devices.

Thanks bijayalaxmi1808 and CelticWarrior.

Yes, it should and that’s the problem. ‘i384’ or ‘amd64’ packages cannot be installed in ARM devices.

Yep, i found the i384 package for 32bit deb but that failed too. So if I’m reading this right, i need an arm64 package (64-bit ARM) for my 64bit quad-core ARM Cortex-A72 processor.
I can only find amd64, armhf, and i386.

Hmm. anyone know how to get the arm64 file?

Have you tried adding the armhf architecture to dpkg?

sudo dpkg —add-architecture armhf

Have you tried adding the armhf architecture to dpkg?

sudo dpkg —add-architecture armhf

Thanks deadflowr. So this is what i did:

wget -qO — https://keys.anydesk.com/repos/DEB-GPG-KEY | apt-key add —
echo «deb http://deb.anydesk.com/ all main» > /etc/apt/sources.list.d/anydesk-stable.list
apt update
sudo dpkg —add-architecture armhf
apt install anydesk

Which seemed to go ok. Now it appears in my Show Applications (see pic) but nothing happens when i click on it. Did i break it? I am a Windows user after all 🙁
286108286109

Are you trying to install Anydesk on the raspberry PI 4? I am guessing that if you want the Raspberry Pi version of Anydesk on the Raspberry Pi then you would need to be running Raspbian OS on the Raspberry PI.

The Debian version of Anydesk might be meant for Debian and Debian based OS running on an AMD64 compatible CPU. Which excludes the Raspberry PI with its ARM CPU. The Ubuntu server for the Raspberry PI is modified to run on the ARM cortex CPU. That is why deb files such as Lubuntu desktop can be installed. I cannot say for sure but Ubuntu server for Raspberry PI may have its own set of Ubuntu repositories with deb files modified not to reject being installed on an ARM cortex CPU.

This might help to over come the problem. It is a PPA and it is uptodate for 20.04

Ok grahammechanical. Not sure what that means but i gave it a go:

sudo add-apt-repository ppa:rpi-distro/ppa
sudo apt-get update

It gave an error. Something about not having a Release file so its not safe and therefore disabled by default (see pic). I’m guessing that’s not good.

It feels like I’m forcing a red square block though a yellow circular hole while thinking: why doesn’t this work!

The ppa has no packages.
Probably best to disable it.

You can try running the application’s command to launch from a terminal
that should tell something about what’s happening.
For anydesk that is the command

anydesk
or if needed you can run the full file path name

Ok. I removed the ppa

sudo add-apt-repository —remove ppa:rpi-distro/ppa

then launched anydesk via terminal.

In both cases it said:
error while loading shared libraries: libpolkit-gobject-1.so.0: cannot open shared object file: No such file or directory

Try installing the libpolkit-gobject package

sudo apt-get install libpolkit-gobject-1-0

I did a search and found this:
https://stackoverflow.com/questions/59585500/ubuntu-on-raspberry-pi-4-anydesk-error-while-loading-shared-libraries-libpolk

apt-get install libpolkit-gobject-1.so.0

but got this for my trouble:

E: Unable to locate package libpolkit-gobject-1.so.0
E: Couldn’t find any package by glob ‘libpolkit-gobject-1.so.0’
E: Couldn’t find any package by regex ‘libpolkit-gobject-1.so.0’

I thought i was onto something there for a moment 🙁

Try installing the libpolkit-gobject package

sudo apt-get install libpolkit-gobject-1-0

Ok, tired this too and it said:

ibpolkit-gobject-1-0 is already the newest version (0.105-26ubuntu1).

Might be it needs the armhf version.
Try

sudo apt-get install libpolkit-gobject-1-0:armhf

Might be it needs the armhf version.
Try

sudo apt-get install libpolkit-gobject-1-0:armhf

Ok, this time it did something:

The following NEW packages will be installed:
libpolkit-gobject-1-0:armhf
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.

But still failed to open:

as it gave this new error:
anydesk: error while loading shared libraries: libbcm_host.so: cannot open shared object file: No such file or directory

after reading these i tired this but it didn’t work.

sudo apt-get update
sudo apt-get install —reinstall libraspberrypi0 libraspberrypi-dev libraspberrypi-doc libraspberrypi-bin

and found my way to this page:
https://github.com/raspberrypi/firmware/releases

Since my Opt/vc folder is empty i tried to get Ark to extract the Opt/vc folder from the archive (firmware-1.20200601-arm64.tar.gz) but i don’t have sufficient permissions.

Yepp did everything above, but got this error:
anydesk: error while loading shared libraries: libpolkit-gobject-1.so.0: cannot open shared object file: No such file or directory

tried to check everywhere, even did necessary installs. Put files on desired locations, but same error everytime.
Files:

/usr/lib/aarch64-linux-gnu/libpolkit-gobject-1.so.0
/usr/lib/aarch64-linux-gnu/libpolkit-gobject-1.so.0.0.0
/usr/share/doc/libpolkit-gobject-1-0/changelog.Debian.gz
/usr/share/doc/libpolkit-gobject-1-0/copyright

Hello and welcome to the forum kabir18, please start your own thread instead of posting in someone else’s so you can get the individual help you need.

Источник

Thread: Anydesk install in 20.04 64bit on a Pi 4

Thread Tools
Display

Anydesk install in 20.04 64bit on a Pi 4

I am a new user of Ubuntu (less than 24hrs in) and failed to install my first app on this OS. After some effort i have managed to install a 64bit OS on my Raspberry Pi 4 4GB using a Ubuntu Server 20.04 for Raspberry Pi image and installed lubuntu (sudo apt-get install lubuntu-desktop).
In the OS, Settings -> About

Processor: blank
Graphics: llvmpipe (LLVM 9.0.1, 128 bits)
Disk Capacity: Unknown
OS Name: Ubuntu 20.04 LTS
OS Type: 64-bit

Which i find confusing because i think it is an ARM processor but requires DEB install files right? So i head over to Anydesk but the Debian/Ubuntu/Mint (64bit)* file gives the error:
Error: Wrong architecture ‘amd64’

So i head to the Anydesk for Raspberry Pi download** this time but get the error:
Error: Wrong architecture ‘armhf’

I feel silly since there is something obvious i am missing. I just don’t know what. I will need to install many apps and I’m stuck at my first hurdle. Any help would be appreciated.

Re: Anydesk install in 20.04 64bit on a Pi 4

armhf arm hard-float is the name given to the Debian port for ARM 32-bit versions (someone please correct me if I am wrong).
At least this link clearly mentions the same:

If this is true, you can try a 32-bit deb file and see if it installs.

I am not sure, but, should there be an ARM variant of the binary file?

Источник

Raspberry-pi4 Anydesk problem with libpolkit-gobject-1.so.0

I’m trying to install Anydesk on my Raspberry pi which is running ubuntu. When I run anydesk on the terminal i get:

I’ve ran and get:

Ensure AV Gear Plays Nice on the Corporate Network

The package you need to install for that shared library file is libpolkit-gobject-1-0

I also have some problems with AnyDesk on m Pi 4 running raspbian full.

Installed anydesk 5.1.2-1 and got the icon in the taskbar.

But when trying to open a session from the menu / internet / anydesk I just get the hourglass and — nothing happens.

Tried to uninstall and reinstall also with version anydesk_5.5.2-1_armhf.deb it doesn’t work.

When executing from the terminal window with sudo andesk I get * failed to add service — already in use? even when I closed the taskbar icon.

On my second Pi 4 everything works like a charm.

I would appreciate any suggestions and help.

Same problem for me . installed x-times and it don’t work as expected. Other machines work fine — on my Pi4 it won’t work as client. The host-part is working so I can control Pi4 from other machines

The package you need to install for that shared library file is libpolkit-gobject-1-0

I installed libpolkit-gobject-1-0. It installed just fine. Actually it said:

libpolkit-gobject-1-0 is already the newest version (0.105-26ubuntu1).

Still got same error message on trying to run anydesk:

anydesk: error while loading shared libraries: llibpolkit-gobject-1.so.0: cannot open shared object file.

Is anydesk looking in the wrong place?

Any help would be much appreciated!

The package I install is:

sudo apt-get install libpolkit-gobject-1-dev

now the error does not appear, but anydesk does not start me.

This topic has been locked by an administrator and is no longer open for commenting.

To continue this discussion, please ask a new question.

Read these next.

poor wifi, school’s third floor

I work as a help desk technician at a high school for a school district. Teachers/students on the building’s third floor have been reporting poor wifi, with their Chromebooks/laptops etc experiencing slow connectivity and random disconnections. We hav.

Need help crafting a job posting for an IT Pro

I’d really appreciate some thoughts and advice. I’m looking to hire an IT pro to be our resident go-to for all things IT (device support, SQL Server, network admin, etc) but who also is interested in learning — or even has some experience in — the.

Snap! — AI Eye Contact, Mine Batteries, Headset-free Metaverse, D&D Betrayal

Your daily dose of tech news, in brief. Welcome to the Snap! Flashback: January 13, 1874: Adding Machine Patented (Read more HERE.) Bonus Flashback: January 13, 1990: Astronauts awakened to the song Attack of the Killer Tomatoes (Read mor.

Spark! Pro series – 13th January 2023

Happy Friday the 13th! This day has a reputation for being unlucky, but I hope that you’ll be able to turn that around and have a great day full of good luck and good fortune. Whether you’re superstitious or not, .

Источник

Новые и опытные пользователи Linux могут сталкиваться с ошибкой error loading shared libraries во время запуска программ, также с ней могут сталкиваться программисты и все желающие компилировать программное обеспечение в своей системе. Эта ошибка в дословном переводе означает что возникла проблема во время загрузки общей библиотеки. О том что такое библиотеки и зачем они нужны вы можете узнать из статьи библиотеки Linux.

В этой же статье мы рассмотрим что значит ошибка error while loading shared libraries более подробно, а главное, как ее решить.

Даже если вы не компилируете свои программы, то вы можете увидеть ошибку error while loading shared libraries: имя_библиотеки: cannot open shared object file: No such file or directory достаточно часто во время установки новых программ не через пакетный менеджер или программ, предназначенных для другого дистрибутива. Как я уже говорил, она возникает потому, что система не может найти библиотеку.

А вот почему ее нельзя найти и загрузить, это уже интересно. Этому может быть несколько причин:

  • Библиотека не установлена в системе;
  • Библиотека установлена, но неизвестно куда;
  • Библиотека установлена правильно, но имеет не ту версию.

При решении проблемы мы будем руководствоваться именно этими причинами и пытаться их решить.

Как исправить ошибку?

1. Библиотека не установлена

Первый вариант, тут все понятно, библиотеки просто нет в системе, поэтому мы и получаем такую ошибку. Верный способ ее решения — просто найти пакет библиотеки с помощью пакетного менеджера и установить ее. Обычно, пакеты с библиотеками называются так же, как и сами библиотеки с префиксом lib.

Например, если нам не хватает библиотеки libfuse2.so, то мы можем найти ее в Ubuntu такой командой:

sudo apt search libfuse2

Затем осталось только установить ее:

sudo apt install libfuse2

Если перед вами стоит задача собрать программу из исходников, то вам понадобится не только установить саму библиотеку, но и заголовочные файлы для нее:

sudo apt install libfuse-dev

И так для любой библиотеки. Но это не всегда помогает.

2. Библиотека находится не в том каталоге

Бывает что библиотека установлена, мы установили ее или она поставлялась вместе с программой, но ошибка как была, так и есть. Причиной этому может быть то, что загрузчик Linux не может найти библиотеку.

Поиск библиотек выполняется по всех папках, которые указаны в конфигурационных файлах /etc/ld.conf.d/. По умолчанию, это такие каталоги, как /usr/lib, /lib, /usr/lib64, /lib64. Если библиотека установлена в другой каталог, то, возможно, это и есть причина проблемы.

Вы можете посмотреть какие библиотеки сейчас доступны загрузчику с помощью команды:

Найти, где находится ваша библиотека можно с помощью команды locate. Например, нас интересует библиотека librtfreader.so:

Теперь мы знаем, что она находится по адресу /opt/kingsoft/wps-office/office6/. А значит, для работы программы необходимо сделать чтобы загрузчик библиотек ее видел. Для этого можно добавить путь в один из файлов /etc/ld.so.conf.d/ или же в переменную LD_LIBRARY_PATH:

Опять же, так вы можете поставить с любой библиотекой, которая взывает ошибку. Еще один более простой метод — это просто создать символическую ссылку на нужную библиотеку в правильной папке:

ln -s /opt/kingsoft/wps-office/office6/librtfreader.so /usr/lib/librtfreader.so

3. Неверная версия библиотеки

Эта причина ошибки довольно часто встречается при использовании программ не для вашего дистрибутива. Каждая библиотека имеет дополнительную версию, так называемую ревизию, которая записывается после расширения .so. Например, libav.so.1. Так вот, номер версии меняется всякий раз, когда в библиотеку вносятся какие-либо исправления.

Часто возникает ситуация, когда в одном дистрибутиве программа собирается с зависимостью от библиотеки, например, libc.so.1, а в другом есть только libc.so.2. Отличия в большинстве случаев здесь небольшие и программа могла бы работать на второй версии библиотеки. Поэтому мы можем просто создать символическую ссылку на нее.

Например, библиотеки libusb-1.0.so.1 нет. Но зато есть libusb-1.0.so.0.1, и мы можем ее использовать:

Для этого просто создаем символическую ссылку на библиотеку:

sudo ln -s /usr/lib/libusb-1.0.so.0.1 /usr/lib/libusb-1.0.so.1

В большинстве случаев программа не заметит подмены и будет работать, как и ожидалось. Также для решения этой проблемы можно попытаться найти нужную версию библиотеки в интернете для своей архитектуры и поместить ее в папку /usr/lib/ или /usr/lib64/. Но после этого желательно обновить кэш:

Выводы

В этой статье мы рассмотрели почему возникает ошибка Error while loading shared libraries, а также как ее решить. В большинстве случаев проблема решается довольно просто и вы получите работоспособную программу. Надеюсь, эта информация была полезной для вас.

Источник


View Full Version : [lubuntu] Anydesk install in 20.04 64bit on a Pi 4


netwarrior2

June 5th, 2020, 06:42 PM

I am a new user of Ubuntu (less than 24hrs in) and failed to install my first app on this OS. After some effort i have managed to install a 64bit OS on my Raspberry Pi 4 4GB using a Ubuntu Server 20.04 for Raspberry Pi image and installed lubuntu (sudo apt-get install lubuntu-desktop).
In the OS, Settings -> About

Processor: blank
Graphics: llvmpipe (LLVM 9.0.1, 128 bits)
Disk Capacity: Unknown
OS Name: Ubuntu 20.04 LTS
OS Type: 64-bit

Which i find confusing because i think it is an ARM processor but requires DEB install files right? So i head over to Anydesk but the Debian/Ubuntu/Mint (64bit)* file gives the error:
Error: Wrong architecture ‘amd64’

So i head to the Anydesk for Raspberry Pi download** this time but get the error:
Error: Wrong architecture ‘armhf’

I feel silly since there is something obvious i am missing. I just don’t know what. I will need to install many apps and I’m stuck at my first hurdle. Any help would be appreciated.

* https://anydesk.com/en/downloads/linux
(https://anydesk.com/en/downloads/linux)** https://anydesk.com/en/downloads/raspberry-pi

286101286102286103 (https://anydesk.com/en/downloads/raspberry-pi)


bijayalaxmi1808

June 5th, 2020, 07:05 PM

armhf arm hard-float is the name given to the Debian port for ARM 32-bit versions (someone please correct me if I am wrong).
At least this link (https://www.debian.org/ports/arm/) clearly mentions the same:

The newer ARM hard-float (https://wiki.debian.org/ArmHardFloatPort) (armhf) port supports newer, more powerful 32-bit devices using version 7 of the ARM architecture specification.

If this is true, you can try a 32-bit deb file and see if it installs.

I am not sure, but, should there be an ARM variant of the binary file?


CelticWarrior

June 5th, 2020, 07:18 PM

I am not sure, but, should there be an ARM variant of the binary file?

Yes, it should and that’s the problem. ‘i384’ or ‘amd64’ packages cannot be installed in ARM devices.


netwarrior2

June 5th, 2020, 08:25 PM

Thanks bijayalaxmi1808 and CelticWarrior.

Yes, it should and that’s the problem. ‘i384’ or ‘amd64’ packages cannot be installed in ARM devices.

Yep, i found the i384 package for 32bit deb but that failed too. So if I’m reading this right, i need an arm64 package (64-bit ARM) for my 64bit quad-core ARM Cortex-A72 processor.
I can only find amd64, armhf, and i386.

Hmm….anyone know how to get the arm64 file?


deadflowr

June 5th, 2020, 08:33 PM

Have you tried adding the armhf architecture to dpkg?

sudo dpkg —add-architecture armhf


netwarrior2

June 5th, 2020, 10:18 PM

Have you tried adding the armhf architecture to dpkg?

sudo dpkg —add-architecture armhf

Thanks deadflowr. So this is what i did:

wget -qO — https://keys.anydesk.com/repos/DEB-GPG-KEY | apt-key add —
echo «deb http://deb.anydesk.com/ all main» > /etc/apt/sources.list.d/anydesk-stable.list
apt update
sudo dpkg —add-architecture armhf
apt install anydesk

Which seemed to go ok. Now it appears in my Show Applications (see pic) but nothing happens when i click on it. Did i break it? I am a Windows user after all :(
286108286109


netwarrior2

June 7th, 2020, 05:30 PM

Ok, I’m still looking into this issue and I’ll reach out to Anydesk and others to solve it. But in the mean time, is there a workaround that can remote access my lubuntu system remotely using my android tablet and occasionally my Win10 PC? I need to be able to see the screen while the lubuntu system is headless.


grahammechanical

June 7th, 2020, 09:40 PM

Are you trying to install Anydesk on the raspberry PI 4? I am guessing that if you want the Raspberry Pi version of Anydesk on the Raspberry Pi then you would need to be running Raspbian OS on the Raspberry PI.

The Debian version of Anydesk might be meant for Debian and Debian based OS running on an AMD64 compatible CPU. Which excludes the Raspberry PI with its ARM CPU. The Ubuntu server for the Raspberry PI is modified to run on the ARM cortex CPU. That is why deb files such as Lubuntu desktop can be installed. I cannot say for sure but Ubuntu server for Raspberry PI may have its own set of Ubuntu repositories with deb files modified not to reject being installed on an ARM cortex CPU.

This might help to over come the problem. It is a PPA and it is uptodate for 20.04

https://launchpad.net/~rpi-distro/+archive/ubuntu/ppa

Regards..


netwarrior2

June 7th, 2020, 10:48 PM

Ok grahammechanical. Not sure what that means but i gave it a go:

sudo add-apt-repository ppa:rpi-distro/ppa
sudo apt-get update

It gave an error. Something about not having a Release file so its not safe and therefore disabled by default (see pic). I’m guessing that’s not good.

It feels like I’m forcing a red square block though a yellow circular hole while thinking: why doesn’t this work!

286149


deadflowr

June 8th, 2020, 05:12 AM

The ppa has no packages.
Probably best to disable it.

You can try running the application’s command to launch from a terminal
that should tell something about what’s happening.
For anydesk that is the command

anydesk
or if needed you can run the full file path name

/usr/bin/anydesk


netwarrior2

June 8th, 2020, 04:34 PM

Ok. I removed the ppa

sudo add-apt-repository —remove ppa:rpi-distro/ppa

then launched anydesk via terminal.

anydesk

/usr/bin/anydesk

In both cases it said:
error while loading shared libraries: libpolkit-gobject-1.so.0: cannot open shared object file: No such file or directory

286154


deadflowr

June 8th, 2020, 04:49 PM

Try installing the libpolkit-gobject package

sudo apt-get install libpolkit-gobject-1-0


netwarrior2

June 8th, 2020, 04:50 PM

I did a search and found this:
https://stackoverflow.com/questions/59585500/ubuntu-on-raspberry-pi-4-anydesk-error-while-loading-shared-libraries-libpolk

So i did this:

apt-get install libpolkit-gobject-1.so.0

but got this for my trouble:

E: Unable to locate package libpolkit-gobject-1.so.0
E: Couldn’t find any package by glob ‘libpolkit-gobject-1.so.0’
E: Couldn’t find any package by regex ‘libpolkit-gobject-1.so.0’

I thought i was onto something there for a moment :(

286155


netwarrior2

June 8th, 2020, 04:53 PM

Try installing the libpolkit-gobject package

sudo apt-get install libpolkit-gobject-1-0

Ok, tired this too and it said:

ibpolkit-gobject-1-0 is already the newest version (0.105-26ubuntu1).

Still no joy.

286156


deadflowr

June 8th, 2020, 05:03 PM

Might be it needs the armhf version.
Try

sudo apt-get install libpolkit-gobject-1-0:armhf


ActionParsnip

June 8th, 2020, 05:19 PM

To access the files on your pi from your tablet etc you can install openssh-server and you will get an SFTP service. You can connect to this from Windows and tablets and use your Raspberry Pi credentials to authenticate. You can also use SSH (like PuTTY) to connect to the server and manipulate the OS in CLI (Software updates are dead handy here).


netwarrior2

June 8th, 2020, 05:19 PM

Might be it needs the armhf version.
Try

sudo apt-get install libpolkit-gobject-1-0:armhf

Ok, this time it did something:

The following NEW packages will be installed:
libpolkit-gobject-1-0:armhf
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.

But still failed to open:

anydesk

as it gave this new error:
anydesk: error while loading shared libraries: libbcm_host.so: cannot open shared object file: No such file or directory

286157


ActionParsnip

June 8th, 2020, 05:46 PM

https://raspberrypi.stackexchange.com/questions/78719/missing-libbcm-host-so-when-running-chromium-browser
https://github.com/bamarni/pi64/issues/26


netwarrior2

June 8th, 2020, 06:26 PM

https://raspberrypi.stackexchange.com/questions/78719/missing-libbcm-host-so-when-running-chromium-browser
https://github.com/bamarni/pi64/issues/26

after reading these i tired this but it didn’t work.

sudo apt-get update
sudo apt-get install —reinstall libraspberrypi0 libraspberrypi-dev libraspberrypi-doc libraspberrypi-bin

286163


netwarrior2

June 8th, 2020, 06:37 PM

and found my way to this page:
https://github.com/raspberrypi/firmware/releases

Since my Opt/vc folder is empty i tried to get Ark to extract the Opt/vc folder from the archive (firmware-1.20200601-arm64.tar.gz) but i don’t have sufficient permissions.

286164


kabir18

November 25th, 2020, 07:29 AM

Yepp did everything above, but got this error:
anydesk: error while loading shared libraries: libpolkit-gobject-1.so.0: cannot open shared object file: No such file or directory

tried to check everywhere, even did necessary installs. Put files on desired locations, but same error everytime.
Files:

/usr/lib/aarch64-linux-gnu/libpolkit-gobject-1.so.0
/usr/lib/aarch64-linux-gnu/libpolkit-gobject-1.so.0.0.0
/usr/share/doc/libpolkit-gobject-1-0/changelog.Debian.gz
/usr/share/doc/libpolkit-gobject-1-0/copyright


wildmanne39

November 25th, 2020, 08:10 AM

Hello and welcome to the forum kabir18, please start your own thread instead of posting in someone else’s so you can get the individual help you need.

Thanks


ActionParsnip

November 25th, 2020, 05:03 PM

Seems the PPA is dead
https://launchpad.net/~rpi-distro/+archive/ubuntu/ppa


Powered by vBulletin® Version 4.2.2 Copyright © 2023 vBulletin Solutions, Inc. All rights reserved.

Новые и опытные пользователи Linux могут сталкиваться с ошибкой error loading shared libraries во время запуска программ, также с ней могут сталкиваться программисты и все желающие компилировать программное обеспечение в своей системе. Эта ошибка в дословном переводе означает что возникла проблема во время загрузки общей библиотеки. О том что такое библиотеки и зачем они нужны вы можете узнать из статьи библиотеки Linux.

В этой же статье мы рассмотрим что значит ошибка error while loading shared libraries более подробно, а главное, как ее решить.

Даже если вы не компилируете свои программы, то вы можете увидеть ошибку error while loading shared libraries: имя_библиотеки: cannot open shared object file: No such file or directory достаточно часто во время установки новых программ не через пакетный менеджер или программ, предназначенных для другого дистрибутива. Как я уже говорил, она возникает потому, что система не может найти библиотеку.

А вот почему ее нельзя найти и загрузить, это уже интересно. Этому может быть несколько причин:

  • Библиотека не установлена в системе;
  • Библиотека установлена, но неизвестно куда;
  • Библиотека установлена правильно, но имеет не ту версию.

При решении проблемы мы будем руководствоваться именно этими причинами и пытаться их решить.

Как исправить ошибку?

1. Библиотека не установлена

Первый вариант, тут все понятно, библиотеки просто нет в системе, поэтому мы и получаем такую ошибку. Верный способ ее решения — просто найти пакет библиотеки с помощью пакетного менеджера и установить ее. Обычно, пакеты с библиотеками называются так же, как и сами библиотеки с префиксом lib.

Например, если нам не хватает библиотеки libfuse2.so, то мы можем найти ее в Ubuntu такой командой:

sudo apt search libfuse2

Затем осталось только установить ее:

sudo apt install libfuse2

Если перед вами стоит задача собрать программу из исходников, то вам понадобится не только установить саму библиотеку, но и заголовочные файлы для нее:

sudo apt install libfuse-dev

И так для любой библиотеки. Но это не всегда помогает.

2. Библиотека находится не в том каталоге

Бывает что библиотека установлена, мы установили ее или она поставлялась вместе с программой, но ошибка как была, так и есть. Причиной этому может быть то, что загрузчик Linux не может найти библиотеку.

Поиск библиотек выполняется по всех папках, которые указаны в конфигурационных файлах /etc/ld.conf.d/. По умолчанию, это такие каталоги, как /usr/lib, /lib, /usr/lib64, /lib64. Если библиотека установлена в другой каталог, то, возможно, это и есть причина проблемы.

Вы можете посмотреть какие библиотеки сейчас доступны загрузчику с помощью команды:

ldconfig -p

Найти, где находится ваша библиотека можно с помощью команды locate. Например, нас интересует библиотека librtfreader.so:

 locate librtfreader

Теперь мы знаем, что она находится по адресу /opt/kingsoft/wps-office/office6/. А значит, для работы программы необходимо сделать чтобы загрузчик библиотек ее видел. Для этого можно добавить путь в один из файлов /etc/ld.so.conf.d/ или же в переменную LD_LIBRARY_PATH:

export LD_LIBRARY_PATH=/opt/kingsoft/wps-office/office6/

Опять же, так вы можете поставить с любой библиотекой, которая взывает ошибку. Еще один более простой метод — это просто создать символическую ссылку на нужную библиотеку в правильной папке:

ln -s /opt/kingsoft/wps-office/office6/librtfreader.so /usr/lib/librtfreader.so

3. Неверная версия библиотеки

Эта причина ошибки довольно часто встречается при использовании программ не для вашего дистрибутива. Каждая библиотека имеет дополнительную версию, так называемую ревизию, которая записывается после расширения .so. Например, libav.so.1. Так вот, номер версии меняется всякий раз, когда в библиотеку вносятся какие-либо исправления.

Часто возникает ситуация, когда в одном дистрибутиве программа собирается с зависимостью от библиотеки, например, libc.so.1, а в другом есть только libc.so.2. Отличия в большинстве случаев здесь небольшие и программа могла бы работать на второй версии библиотеки. Поэтому мы можем просто создать символическую ссылку на нее.

Например, библиотеки libusb-1.0.so.1 нет. Но зато есть libusb-1.0.so.0.1, и мы можем ее использовать:

Для этого просто создаем символическую ссылку на библиотеку:

sudo ln -s /usr/lib/libusb-1.0.so.0.1 /usr/lib/libusb-1.0.so.1

В большинстве случаев программа не заметит подмены и будет работать, как и ожидалось. Также для решения этой проблемы можно попытаться найти нужную версию библиотеки в интернете для своей архитектуры и поместить ее в папку /usr/lib/ или /usr/lib64/. Но после этого желательно обновить кэш:

sudo ldconfig

Выводы

В этой статье мы рассмотрели почему возникает ошибка Error while loading shared libraries, а также как ее решить. В большинстве случаев проблема решается довольно просто и вы получите работоспособную программу. Надеюсь, эта информация была полезной для вас.

Creative Commons License

Статья распространяется под лицензией Creative Commons ShareAlike 4.0 при копировании материала ссылка на источник обязательна .

Понравилась статья? Поделить с друзьями:

Читайте также:

  • Antizapret transport error
  • Antivol defaillant ситроен с4 ошибка
  • Antivirus error sans
  • Antitheft ошибка пежо 308 faulty
  • Antirollback check error

  • 0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии