Score:4

VBoxClient: error while loading shared libraries: libXt.so.6:

kz flag

Through VirtualBox for many Virtual Machines for Ubuntu Server - for each one an upgrade was done from 20.04 to 22.04. The apt update and apt upgrade commands work fine. But just few days ago I did realize that if I execute the following command to all the Virtual Machines:

VBoxClient --version

arises the following error message

VBoxClient: error while loading shared libraries: libXt.so.6: cannot open shared object file: No such file or directory

was reinstalled VirtualBox Guest Additions and the situation remains.

Question

  • How fix this situation?

Extra Question

  • Why this situation appeared? Is due the OS' upgrade?

UPDATE

In the post:

is indicated as solution execute the command

sudo apt install libxt6:i386

It shows

E: Unable to locate package libxt6:i386

Thus was executed

sudo apt install libxt6

And was installed.

But sadly even if the VM is restarted, the error remains

user535733 avatar
cn flag
Does this answer your question? [can't load shared library libXt.so.6 - although it can be located](https://askubuntu.com/questions/1109393/cant-load-shared-library-libxt-so-6-although-it-can-be-located)
Manuel Jordan avatar
kz flag
@user535733 see the `update` section
mloskot avatar
aq flag
See workaround for vbguest plugin https://github.com/dotless-de/vagrant-vbguest/issues/425
Score:5
by flag

On a fresh Debian 11, running in VirtualBox 7, I got just the same behaviour:

$ VBoxClient --version
VBoxClient: error while loading shared libraries: libXt.so.6: cannot open shared object file

...after initially installing only the following packages:

apt-get install dkms linux-headers-$(uname -r) build-essential

Turns out I had to also install the following:

apt-get install libxt6 libxmu6

...and now I'm getting, without reboot:

$ VBoxClient --version
7.0.2r154219
Manuel Jordan avatar
kz flag
Thank you - it worked directly with `sudo apt install libxt6 libxmu6`
Manuel Jordan avatar
kz flag
Just being curious, how did you know why to use `libxmu6`?
zb226 avatar
by flag
`VBoxClient` was complaining that `libXmu.so.6` is missing...
mloskot avatar
aq flag
@zb226 Thanks. I've ported your solution to workaround for vbguest plugin https://github.com/dotless-de/vagrant-vbguest/issues/425
Score:0
et flag

I have the same error. Just install the missing libxx package. You saw the error remains, probably because another libxx package is missing, and you need to continue install the new package. That's what I did.

Manuel Jordan avatar
kz flag
Can you share the complete command?
Marvin Xu avatar
et flag
I can't reproduce, so I can't give you the exact package name. But the main idea is, if you successfully installed `libxt6` using `sudo apt install libxt6` then run `VBoxClient --version` again, the error message should be **different**. In my case it's another lib-something package missing, so I just kept installing the next missing one :)
Manuel Jordan avatar
kz flag
Did you read the `UPDATE` section in my post?
Marvin Xu avatar
et flag
Based on your comment beblow @zb226 's answer, you clearly didn't pay attention to the error message
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.