VirtualBox Warning: program compiled against libxml 209 using older 207 - linux

I have installed Ubuntu Server 12.04-4 LTS.
Set to /etc/apt/sources.list
deb http://download.virtualbox.org/virtualbox/debian saucy contrib
deb http://download.virtualbox.org/virtualbox/debian raring contrib
deb http://download.virtualbox.org/virtualbox/debian quantal contrib
deb http://download.virtualbox.org/virtualbox/debian precise contrib
deb http://download.virtualbox.org/virtualbox/debian lucid contrib non-free
deb http://download.virtualbox.org/virtualbox/debian wheezy contrib
deb http://download.virtualbox.org/virtualbox/debian squeeze contrib non-free
After that I did
sudo apt-get update
sudo apt-get install virtualbox-4.3
The Commandline below give me the Error
"Warning: program compiled against libxml 209 using older 207"
VBoxManage setproperty websrvauthlibrary null
Than I downloaded the install the Extension Pack of Linux
wget http://download.virtualbox.org/virtualbox/VERSION/Oracle_VM_VirtualBox_Extension_Pack-4.3.6.vbox-extpack
VBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-4.3.6.vbox-extpack
Got the same error like above with "Warning: program compiled against libxml 209 using older 207"
Can anybody tell what is wrong? What is wrong with libxml?
ScreenLog
VBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-4.3.0.vbox-extpack
Warning: program compiled against libxml 209 using older 207
0%...
Progress state: NS_ERROR_FAILURE
VBoxManage: error: Failed to install "/home/thatsme/Oracle_VM_VirtualBox_Extension_Pack-4.3.0.vbox-extpack"
VBoxManage: error: The installer failed with exit code 127: Warning: program compiled against libxml 209 using older 207
VBoxManage: error: Error creating textual authentication agent: Error opening current controlling terminal for the process (`/dev/tty'): No such device or address
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component ExtPackManager, interface IExtPackManager
VBoxManage: error: Context: "int handleExtPack(HandlerArg*)" at line 1143 of file VBoxManageMisc.cpp

Warning: program compiled against libxml 209 using older 207
It seems to be a warning and not an error so you don't have to take it so seriously :)
Besides, in your sources.list you should not be putting those extra repo since with 12.04 (precise) you should be ok. Those extra repos can cause a lot of trouble and interdependency problems if you don't take care.
So, I recommend you to only left your sources.list with the only needed for your distribution:
deb http://download.virtualbox.org/virtualbox/debian precise contrib
Also, you can try to do a package upgrade with sudo apt-get update or sudo apt-get dist-upgrade to see if the version issue dissapear with a libxml upgrade.
Also, you can try to force an update on libxml by issuing sudo apt-get install libxml to see if that solves your warning.
HTH

Are you installing the Extension Pack on the Host system or on the (Virtual) guest system? What is your Host system, assuming Ubuntu-server is the guest OS?
FYI: It should be installed on the Host system, and your regular username thatsme should be added to the vboxusers group
sudo usermod -aG vboxusers thatsme
As for the libxml errors, they should be harmless; feel free to check out this thread on the virtualbox forums, where a user has similar issues.

Related

apt shows only an old version of the package

I am trying to install ffmpeg on my sistem, but for some reason when I do sudo apt install ffmpeg I only get the version 4.1.10-0+deb10u1. This is an issue because one of my apps requires at least version 4.2.7. When running apt list --all-versions ffmpeg I get the following output:
ffmpeg/oldstable,now 7:4.1.10-0+deb10u1 amd64 [installed]
ffmpeg/oldstable 7:4.1.9-0+deb10u1 amd64
I have run sudo apt update and sudo apt upgrade beforehand just in case, but it seems that the only options I have are those. I use Debian GNU/Linux 10 (buster), so I checked on their website and found that there is a stable version 4.3.5 available here. Maybe there Is something I need to update to see this version?
So it seems that adding a new source fixes the issue.
You basically need to add these two lines in the /etc/apt/sources.list file:
deb http://deb.debian.org/debian/ stable main
deb-src http://deb.debian.org/debian/ stable main
After that apt list --all-versions ffmpeg gave me the desired output:
ffmpeg/stable 7:4.3.5-0+deb11u1 amd64
ffmpeg/oldstable 7:4.1.10-0+deb10u1 amd64
ffmpeg/oldstable 7:4.1.9-0+deb10u1 amd64

Debian Buster: 'E: Unable to locate package'

I have a new install of Debian Buster, I downloaded the ProtonVPN CLI package and went to install and got the errors:
E: Unable to locate package protonvpn-stable-release_1.0.0-1_all.deb
E: Couldn't find any package by glob 'protonvpn-stable-release_1.0.0-1_all.deb'
E: Couldn't find any package by regex 'protonvpn-stable-release_1.0.0-1_all.deb'
my /etc/apt/sources.list file looks like this:
#deb cdrom:[Debian GNU/Linux 10.10.0 _Buster_ - Official amd64 NETINST 20210619-16:11]/ buster main
#deb cdrom:[Debian GNU/Linux 10.10.0 _Buster_ - Official amd64 NETINST 20210619-16:11]/ buster main
deb http://deb.debian.org/debian/ buster main
deb-src http://deb.debian.org/debian/ buster main
deb http://security.debian.org.debian-security buster/updates main
deb-src http://security.debian.org.debian-security buster/updates main
deb http://deb.debian.org/debian/ buster-updates main
deb-src http://deb.debian.org/debian/ buster main
I was able to apt-get install wget as well as update and upgrdade. I even tried uncommenting the cdrom lines at the top. I reran apt-get update and apt-get upgrade.
Still, when I try to install the ProtonVPN package I get the above errors.
Note I understand that this is not strictly programming related. If there is a more appropriate stack, please let me know in comments and I will close and post there.
To install manually downloaded Debian package, use dpkg:
dpkg -i protonvpn-stable-release_1.0.0-1_all.deb
If dpkg is complaining about missing dependencies, then use apt-get -f install after running dpkg

How to install nodejs on Ubuntu?

I install Ubuntu 16.04 on VPS.
My framework is laravel 5.6.
Upload my project on /var/www/html
After run sudo apt-get install -y nodejs this code, show this error:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
nodejs
0 upgraded, 1 newly installed, 0 to remove and 132 not upgraded.
Need to get 0 B/12.8 MB of archives.
After this operation, 62.5 MB of additional disk space will be used.
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "en_US:en",
LC_ALL = (unset),
LC_TIME = "fa_IR",
LC_MONETARY = "fa_IR",
LC_ADDRESS = "fa_IR",
LC_TELEPHONE = "fa_IR",
LC_NAME = "fa_IR",
LC_MEASUREMENT = "fa_IR",
LC_IDENTIFICATION = "fa_IR",
LC_NUMERIC = "fa_IR",
LC_PAPER = "fa_IR",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
locale: Cannot set LC_ALL to default locale: No such file or directory
Selecting previously unselected package nodejs.
(Reading database ... 73714 files and directories currently installed.)
Preparing to unpack .../nodejs_9.11.1-1nodesource1_amd64.deb ...
Unpacking nodejs (9.11.1-1nodesource1) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up nodejs (9.11.1-1nodesource1) ...
And run node -v show this error:
node: error while loading shared libraries: libuv.so.1: cannot open shared object file: No such file or directory
How to install npm and node on ubuntu 16.4 without error?
I strongly suggest using the Node Version Manager, it works on many barebones systems as well, and will let you further troubleshoot the specific issues related to that version of Node. AFAICT the specific error you're seeing is related to the particular snapshot of 16.04 (not 16.4) that you are using regarding a common C library. I would suggest two things to resolve this if using a different Node version doesn't already solve this:
Google the shared object to find what Ubuntu library is needed, and perhaps installation of that may solve it.
If it's already installed or the error persists, you may need to adjust your LD_LIBRARY_PATH and other C-level env variables during installation to refer to the location of the library.
Contact your OS admin or cloud provider to discuss solutions for the missing object.
The error is not related to node, but to your ubuntu that is misconfigured. Run
sudo locale-gen en_US.UTF-8 #### ---> or the locale you are actually using
sudo dpkg-reconfigure locales
to configure your system's locales. After that, uninstall nodejs
sudo apt remove --purge nodejs
Now, follow the advice on nodejs' website on how to install nodejs via package managers. To install node, do the following:
curl -sL https://deb.nodesource.com/setup_9.x | sudo -E bash -
sudo apt-get install -y nodejs
sudo apt-get install -y build-essential
Now you'll have a working ubuntu (at least for the related parts), and nodejs
Try to use nvm (Node Version Manager) you can install it from the terminal
wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash
It will set all the environment for you (like to enable the node command in the terminal, same for npm) and the nvm let you download and change de current version of Nodejs in your device in very simple way which is a very good feature, considering that the node have a high update frequency.
I resolve nodejs installation on ubuntu 18.04 Bionic with this task:
sudo vim /etc/apt/sources.list
add this lines:
#newer versions of the distribution.
deb http://fr.archive.ubuntu.com/ubuntu/ bionic main restricted
deb http://security.ubuntu.com/ubuntu bionic-security main restricted
deb http://fr.archive.ubuntu.com/ubuntu/ bionic-updates main restricted
deb http://fr.archive.ubuntu.com/ubuntu/ bionic universe multiverse
deb http://security.ubuntu.com/ubuntu bionic-security universe multiverse
deb http://fr.archive.ubuntu.com/ubuntu/ bionic-updates universe multiverse
$sudo apt update
$sudo apt upgrade
$sudo apt install nodejs
$node -v
$sudo apt install npm

Xraylib installation

I am a freshman to UBUNTU (Python 2.7 user), and faced a strange problem while installing python's xraylib library. The library is not provided in any official repository and the only possible way to install it is to unpack its '*tar.gz' file.
What I've done:
1) I downloaded the 'tar.gz' file to the '/Downloads' folder
2) Executed the following commands:
gunzip xraylib-version.tar.gz
tar xvf xraylib-version.tar
cd xraylib-version
./configure
sudo make install
I found the package has been installed in the 'usr/local/include' folder (not in the default usr/lib/python2.7). Therefore, in Spyder, I added this folder to the PYTHONPATH variable, and after writing 'import xraylib', I got the message:
"No module named xraylib"
Also, I found it is impossible to drag the xraylib folder to the usr/lib/python2.7 where all the python packages are stored.
Can anyone explain what is the best, and simplest way to install python modules from "tar.gz" files, so that the packages can end up in the default python packages folder?
Many thanks for Your answer!
I tried this way, but I found it failed.
1) I ran this "curl..." command
2) I went to the ../etc/apt/sources.list.d/ folder where I edited the sources.list file by adding (and saving) the lines:
'deb [arch=amd64] http://lvserver.ugent.be/apt/ubuntu xenial stable
deb-src http://lvserver.ugent.be/apt/ubuntu xenial stable'
3) I ran 'sudo apt-get update'
4) Finally, following to writing (I use UBUNTU 16.04):
'sudo apt-get install libxrl7 xraylib libxrl7-dev libxrlf03-7 libxrl-perl'
I got:
'Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libxrl7
E: Unable to locate package xraylib
E: Unable to locate package libxrl7-dev
E: Unable to locate package libxrlf03-7
E: Unable to locate package libxrl-perl'
Meaning, my system still couldn't locate the source.
The instructions are very clear at https://github.com/tschoonj/xraylib/wiki/Installation-instructions#debian-and-ubuntu
curl http://lvserver.ugent.be/apt/xmi.packages.key | sudo apt-key add -
Next, add the package download location corresponding to your distribution to the /etc/apt/sources.list file (as root):
Ubuntu Precise 12.04:
deb [arch=amd64] http://lvserver.ugent.be/apt/ubuntu precise stable
deb-src http://lvserver.ugent.be/apt/ubuntu precise stable
Ubuntu Trusty 14.04:
deb [arch=amd64] http://lvserver.ugent.be/apt/ubuntu trusty stable
deb-src http://lvserver.ugent.be/apt/ubuntu trusty stable
Ubuntu Wily 15.10:
deb [arch=amd64] http://lvserver.ugent.be/apt/ubuntu wily stable
deb-src http://lvserver.ugent.be/apt/ubuntu wily stable
Ubuntu Xenial 16.04:
deb [arch=amd64] http://lvserver.ugent.be/apt/ubuntu xenial stable
deb-src http://lvserver.ugent.be/apt/ubuntu xenial stable
When the sources.list file contains the correct download locations, update the apt cache by running:
sudo apt-get update
After this, one can install xraylib by executing the following command:
sudo apt-get install libxrl7 xraylib libxrl7-dev libxrlf03-7 libxrl-perl

Install qmake in debian 7.11

I'm using debian 7.11.
I is said qt5 is not supported by apt-get.
$apt-get install qt4-qmake
it works.
However,
$apt-get install qt5-qmake
E: Unable to locate package qt5-qmake
Is there any work-around way to install qt5 in debian 7?
These are my sources.list
$less /etc/apt/sources.list
deb http://apt.readynas.com/packages/readynasos 6.5.1 updates apps main
deb http://mirrors.kernel.org/debian wheezy main
deb http://security.debian.org/ wheezy/updates main
deb http://egnyte-cdn.egnyte.com/storagesync/netgear6/en-us 6.5 egnyte
deb ftp://ftp.nerim.net/debian-marillat/ stable main
Take a look at this gist:
https://gist.github.com/iginosilva/fff315ff3072045e9819b6a268b4fdf2
sudo apt-get install qt5-default
It worked for Ubuntu 16 xenial
qmake --version
QMake version 3.0
Using Qt version 5.6.1 in /usr/lib/x86_64-linux-gnu
Which I think that is the correct qmake. you can check the build input on GitHub:
https://github.com/qt/qtbase/tree/5.6/qmake
At present the latest Qt version seems to be something like 5.11 or better. However one must acknowledge that released packages will (needs be) lag the bleeding edge.
If I saw things correctly, Qt 5 is available in the Jessie repositories
You should either install a debian based on Jessie (so you only use packages from it) or add the repositories from Jessie in your sources.list (copy the lines from stable and change the target to testing), sync and install Qt 5
Change Wheezy example:
deb http://http.debian.net/debian wheezy main
to Jessie:
deb http://http.debian.net/debian jessie main
Hope it helps

Resources