Getting libudev-dev to run try developing with bevy - linux

I've looked around somewhat extensively to try and troubleshoot this problem, currently I can't seem to locate the libudev-dev package. When running sudo apt-get install libudev-dev it tells me:
sudo apt-get install libudev-dev --fix-missing
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
libudev-dev
0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.
Need to get 19.7 kB of archives.
After this operation, 251 kB of additional disk space will be used.
Err:1 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 libudev-dev amd64 245.4-4ubuntu3.17
404 Not Found [IP: 91.189.91.39 80]
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/s/systemd/libudev-dev_245.4-4ubuntu3.17_amd64.deb 404 Not Found [IP: 91.189.91.39 80]
E: Internal Error, ordering was unable to handle the media swap
as you can see I attempted to try --fix-missing cause previously it was saying use this, I believe now that's just a "continue" instead of error out from this one package. I saw many recommendations online to ensure that you're properly updated so I ran:
sudo apt-get update
sudo apt-get upgrade
These were giving me some issues and erroring out so I eventually got them to run without any errors and tried again. Even then I'm still unable to locate the libudev-dev package. I followed the link provided in the install blob:
http://us.archive.ubuntu.com/ubuntu
I followed the path specified and located a few versions that might possibly work for what I want but downloading them through that file navigator and running them said I was missing some dependencies but I've been unable to see what dependencies I don't have. So I attempted running it through terminal with:
sudo apt-get install libudev-dev=251.4-1ubuntu6
that was giving me issues saying that version was not found, and I'm not all too familiar with the = syntax so I'm not sure what I could have done wrong there. I'm at my wits end with this, no idea what the problem could be and I was really excited to try out bevy and get some more rust experience, but I can't even compile the most basic app.
Some system information to possibly help debug:
uname -a
**redacted** INTEL 5.15.0-48-generic #54~20.04.1-Ubuntu SMP Thu Sep 1 16:17:26 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
cat /etc/os-release
NAME="Zorin OS"
VERSION="16.1"
ID=zorin
ID_LIKE=ubuntu
PRETTY_NAME="Zorin OS 16.1"
VERSION_ID="16"
HOME_URL="https://zorin.com/os/"
SUPPORT_URL="https://help.zorin.com/"
BUG_REPORT_URL="https://zorin.com/os/feedback/"
PRIVACY_POLICY_URL="https://zorin.com/legal/privacy/"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
lscpu
Vendor ID: GenuineIntel
CPU family: 6
Model: 151
Model name: 12th Gen Intel(R) Core(TM) i5-12600KF
lspci
0000:03:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Device 73ff (rev c1)

Related

Updating glibc on linux mint for sbcl install

I'm trying to properly install SBCL sbcl-2.0.0-x86-64-linux. Extraction and installation complete without any problems.
However, when typing 'sbcl' at the $ prompt to start SBCL running, there is an error message:
sbcl: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by sbcl).
My platform is Linux Mint 19.3 with all updates as shown here:
$ hostnamectl
Static hostname: Lumpy
Icon name: computer-desktop
Chassis: desktop
Machine ID: f3d85c83fd6e458aba76dbf56f683032
Boot ID: e7a1a123ce29458c90ebca9f77ea3888
Operating System: Linux Mint 19.3
Kernel: Linux 5.0.0-37-generic
Architecture: x86-64
Also, the libc6 version seems to be older than the required 2.28:
$ apt-cache policy libc6
libc6:
Installed: 2.27-3ubuntu1
Candidate: 2.27-3ubuntu1
Version table:
*** 2.27-3ubuntu1 500
500 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages
100 /var/lib/dpkg/status
Is there a simple way to update to ver 2.28 of libc6? Or, perhaps have to go back to a previous SBCL?
(ps: I'm new to linux, so any directions will have to be fairly clear—thanks.)
While it is possible to update glibc, you don't really want to do that. Building glibc is highly complex and distros apply lots of patches to make things work. If you replaced it, things would probably break in exciting ways.
You'd be better off building SBCL or finding a different package. For example, you could download the Debian source package and build it yourself. If you wanted to do that, you could download the three source files from the right hand side of the packages.debian.org page and put them in a directory. Then run:
apt install build-essential fakeroot
dpkg-source -x *.dsc
cd sbcl*
dpkg-buildpackage -us -uc -rfakeroot
It will likely complain about one or more missing packages; install them with apt install PACKAGE and try again until you have a binary package, which will be in the directory above.

How to install version 3.7 of puppet on Debian Stretch?

I am trying to install puppet 3.7.2 on my server.
On all my nodes, I have the following:
apt-cache policy puppet
puppet:
Installed: 3.7.2-4+deb8u1
Candidate: 3.7.2-4+deb8u1
Version table:
4.8.2-5~bpo8+1 0
100 http://http.debian.net/debian/ jessie-backports/main amd64 Packages
*** 3.7.2-4+deb8u1 0
500 http://security.debian.org/ jessie/updates/main amd64 Packages
100 /var/lib/dpkg/status
3.7.2-4 0
500 http://httpredir.debian.org/debian/ jessie/main amd64 Packages
On my new server, however, if I try to install this specific version, the following happens:
apt-get install puppet=3.7.2-4+deb8u1
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Version '3.7.2-4+deb8u1' for 'puppet' was not found
Also:
apt-cache policy puppet
puppet:
Installed: (none)
Candidate: 4.8.2-5
Version table:
4.8.2-5 500
500 http://cdn-aws.deb.debian.org/debian stretch/main amd64 Packages
I am not very versed in Linux, how can I install this specific version?
Thanks for the help!
I agree with Matt that you shouldn't use puppet 3.7 as it is EOL long time ago.
However, if you really must, you can install the Wheezy Backports, by adding the line below to /etc/apt/sources.list.d/
deb http://ftp.debian.org/debian jessie-backports main
With this, you will be able to install the package.

How to install Mono in Debian

I am quite new to Debian and Mono. When I tried to install Mono in Debian (which is GNOME Version 3.14.1, Kali GUN/Linux2.0(sana) 32-bit) following the steps from:
http://www.mono-project.com/docs/getting-started/install/linux/#usage
and type in terminal:
sudo apt-get update
I got:
# sudo apt-get update
Hit http://download.mono-project.com wheezy InRelease
Get:1 http://download.mono-project.com wheezy-apache24-compat InRelease [7,940 B]
Get:2 http://download.mono-project.com wheezy/main i386 Packages [56.5 kB]
Get:3 http://download.mono-project.com wheezy-apache24-compat/main i386 Packages [588 B]
Fetched 65.0 kB in 0s (266 kB/s)
W: Failed to fetch http://download.mono-project.com/repo/debian/dists/wheezy/InRelease Unable to find expected entry 'main/binary-x86/Packages' in Release file (Wrong sources.list entry or malformed file)
W: Failed to fetch http://download.mono-project.com/repo/debian/dists/wheezy-apache24-compat/InRelease Unable to find expected entry 'main/binary-x86/Packages' in Release file (Wrong sources.list entry or malformed file)
E: Some index files failed to download. They have been ignored, or old ones used instead.
How can i fix this problem? Thanks in advance!
EDIT:
This problem has been solved but another occurred. Here's the link to that problem:
Packages have unmet dependencies when installing mono-devel in Kali (Debian)
I just googled a lot and played around. I typed the following in the terminal:
dpkg --print-foreign-architectures
and it said: x86
As x86 is not a valid Debian (derivative) architecture so I removed it by:
dpkg --remove-architecture x86
Then the apt-get update works!

VirtualBox Warning: program compiled against libxml 209 using older 207

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.

Error While loading shared libraries libstdc++.so.5

I'm attempting to run a program called GlimmerHMM, however when I try to call the program I get this error:
./glimmerhmm_linux
./glimmerhmm_linux: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory
So I tried downloading and installing:
sudo apt-get install libstdc++5
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
html2text libmail-sendmail-perl libsys-hostname-long-perl
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed: libstdc++5
0 upgraded, 1 newly installed, 0 to remove and 183 not upgraded.
Need to get 255 kB of archives.
After this operation, 1,155 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu/ precise/universe libstdc++5 amd64 1:3.3.6-25ubuntu1 [255 kB]
Fetched 255 kB in 4s (54.0 kB/s)
Selecting previously unselected package libstdc++5.
(Reading database ... 176303 files and directories currently installed.)
Unpacking libstdc++5 (from .../libstdc++5_1%3a3.3.6-25ubuntu1_amd64.deb) ...
Setting up libstdc++5 (1:3.3.6-25ubuntu1) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
But I still get the same error when calling the program. Thanks in advance!
Chances are that, if you're running a program old enough to need libstdc++ v5, it's also a 32-bit application, so it can't use the (64-bit) libstdc++5 you installed. Install the ia32-libs package.
I was trying to get one legacy application working and noticed that with Ubuntu 20.04 one needs to add i386 architecture, before one can install i386 libraries.
sudo dpkg --add-architecture i386
sudo apt update
sudo apt install libstdc++5:i386
# libstdc++.so.5 shows up.
ls -la /usr/lib/i386-linux-gnu/libstdc++.so.5
lrwxrwxrwx 1 root root 18 Apr 11 2020 /usr/lib/i386-linux-gnu/libstdc++.so.5 -> libstdc++.so.5.0.7

Resources