How to install Mono in Debian - linux

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!

Related

Getting libudev-dev to run try developing with bevy

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)

Permission denied while installing Node.js v14.10.0 on Ubuntu 20.4

Hello and thanks for looking at this issue.
So I'm trying to install version node.js v14.10.0. NVM installed without any problems, but when I ran -
nvm install v14.10.0
and I got this error
Downloading and installing node v14.10.0...
Downloading https://nodejs.org/dist/v14.10.0/node-v14.10.0-linux-x64.tar.xz...
Warning: Failed to create the file
Warning: /home/revolverclyde/.nvm/.cache/bin/node-v14.10.0-linux-x64/node-v14.1
Warning: 0.0-linux-x64.tar.xz: Permission denied
0.0%curl: (23) Failure writing output to destination
Binary download from https://nodejs.org/dist/v14.10.0/node-v14.10.0-linux-x64.tar.xz failed, trying source.
grep: /home/revolverclyde/.nvm/.cache/bin/node-v14.10.0-linux-x64/node-v14.10.0-linux-x64.tar.xz: No such file or directory
Provided file to checksum does not exist.
Binary download failed, trying source.
Downloading https://nodejs.org/dist/v14.10.0/node-v14.10.0.tar.xz...
Warning: Failed to create the file
Warning: /home/revolverclyde/.nvm/.cache/src/node-v14.10.0/node-v14.10.0.tar.xz
Warning: : Permission denied
0.0%curl: (23) Failure writing output to destination
Binary download from https://nodejs.org/dist/v14.10.0/node-v14.10.0.tar.xz failed, trying source.
grep: /home/revolverclyde/.nvm/.cache/src/node-v14.10.0/node-v14.10.0.tar.xz: No such file or directory
Provided file to checksum does not exist.
Any suggestions?
Thanks!
UPDATE!!
The error I'm getting above may have something do to with an error I got while installing NodeSource. I'm new to this maybe I'm wrong, but I thought it would be helpful to know anyway.
$ curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
## Installing the NodeSource Node.js 14.x repo...
## Populating apt-get cache...
+ apt-get update
Hit:1 http://dl.google.com/linux/chrome/deb stable InRelease
Get:2 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Ign:3 http://ppa.launchpad.net/me-davidsansome/clementine/ubuntu focal InRelease
Ign:4 https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4 InRelease
Hit:5 http://us.archive.ubuntu.com/ubuntu focal InRelease
Ign:6 https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/5.0 InRelease
Hit:7 https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4 Release
Get:8 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Hit:9 https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/5.0 Release
Err:10 http://ppa.launchpad.net/me-davidsansome/clementine/ubuntu focal Release
404 Not Found [IP: 91.189.95.85 80]
Get:12 http://us.archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]
Reading package lists... Done
E: The repository 'http://ppa.launchpad.net/me-davidsansome/clementine/ubuntu focal Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
Error executing command, exiting
"Err:10 http://ppa.launchpad.net/me-davidsansome/clementine/ubuntu focal Release
404 Not Found [IP: 91.189.95.85 80]" is the specific error if you don't want to hurt your eyes with the dense readout.
Fixed. I am quoting another poster here. I want to give Vishnu the credit.
"I had the same issue. It was due to the lack of "libssl-dev". Run the following command before you start the installation process for nvm
sudo apt-get install build-essential libssl-dev curl git-core"
It's a permission error. You can try to run it with the sudo command.
sudo nvm install v14.10.0

E: Unable to locate package ros-kinetic-desktop-full on Ubuntu 16.04

I know that there are already several questions similar to this, but none of its solutions worked for me. Hence, after a lot of web searching and trying out different stuff, I simply decided to open a Stack Overflow question myself.
Basically, I had ROS Kinetic working on my Ubuntu 16.04 machine and it suddenly started giving me several errors when I tried to build my catkin workspace. After trying several stuff, I decided to uninstall ROS with sudo apt-get remove ros-* and install it again, according to the tutorial http://wiki.ros.org/kinetic/Installation/Ubuntu.
I leave below the full execution of the installation commands:
tomas#tomas-TOSHIBA:~ $ sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
tomas#tomas-TOSHIBA:~ $ sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
Executing: /tmp/tmp.plh6QKA5mU/gpg.1.sh --keyserver
hkp://keyserver.ubuntu.com:80
--recv-key
C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
gpg: requesting key AB17C654 from hkp server keyserver.ubuntu.com
gpg: key AB17C654: "Open Robotics <info#osrfoundation.org>" not changed
gpg: Total number processed: 1
gpg: unchanged: 1
tomas#tomas-TOSHIBA:~ $ sudo apt-get update
Hit:1 http://pt.archive.ubuntu.com/ubuntu xenial InRelease
Get:2 http://pt.archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]
Get:3 http://pt.archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB]
Hit:4 http://ppa.launchpad.net/atareao/atareao/ubuntu xenial InRelease
Hit:5 http://ppa.launchpad.net/deadsnakes/ppa/ubuntu xenial InRelease
Hit:6 https://brave-browser-apt-release.s3.brave.com stable InRelease
Get:7 http://security.ubuntu.com/ubuntu xenial-security InRelease [109 kB]
Hit:8 http://packages.ros.org/ros/ubuntu xenial InRelease
Fetched 325 kB in 6s (50.3 kB/s)
Reading package lists... Done
tomas#tomas-TOSHIBA:~ $ sudo apt-get install ros-kinetic-desktop-full
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package ros-kinetic-desktop-full
I already tried using curl and the different links they suggest on the tutorial to setup my keys, but the end result was the same. If I try sudo apt-get install ros-desktop-full, I get:
tomas#tomas-TOSHIBA:~ $ sudo apt-get install ros-desktop-full
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies.
ros-desktop-full : Depends: ros-desktop but it is not going to be installed
Depends: ros-perception but it is not going to be installed
Depends: ros-simulators but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Running sudo aptitude install ros-desktop-full also did not work. If I execute sudo apt-get install ros-desktop, it says that ros-desktop has unmet dependencies. If I try to install those dependencies, they also have unmet dependencies.
Would really appreciate if anyone could help me. Thanks!
For all those suffering from the same problem, I was not able to solve it and ended up reinstalling Ubuntu on my computer. After this, everything worked correctly.
My advice would be to just reinstall Ubuntu right away, I would have lost less time if I had done it immediately.

libgnutls28-dev: apt is searching for the wrong file?

I am having trouble installing libgnutls28-dev package on debian buster, apt throws the following:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
gnutls-bin gnutls-doc
The following NEW packages will be installed:
libgnutls28-dev
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,086 kB of archives.
After this operation, 4,417 kB of additional disk space will be used.
Err:1 http://deb.debian.org/debian buster/main amd64 libgnutls28-dev amd64 3.6.7-4
404 Not Found [IP: 151.101.220.204 80]
E: Failed to fetch http://deb.debian.org/debian/pool/main/g/gnutls28/libgnutls28-dev_3.6.7-4_amd64.deb 404 Not Found [IP: 151.101.220.204 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
The thing that bugs me is that the package is available at http://deb.debian.org/debian/pool/main/g/gnutls28/libgnutls28-dev_3.6.7-4+deb10u2_amd64.deb, and for some reason apt is looking for libgnutls28-dev_3.6.7-4_amd64.deb instead of libgnutls28-dev_3.6.7-4+deb10u2_amd64.deb.
I tried using a specific version running apt install libgnutls28-dev=3.6.7-4+deb10u2 and got the following:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Version '3.6.7-4+deb10u2' for 'libgnutls28-dev' was not found
The question is where does this come from? is it an apt issue? or is it gnutls28 misinforming about dependencies? or should there be a file libgnutls28-dev_3.6.7-4_amd64.deb in the first place?
[EDIT]
Adding this based on Knud's comment:
According to apt the system is up-to-date:
apt update
Hit:1 http://deb.debian.org/debian buster InRelease
Hit:2 http://deb.debian.org/debian buster-updates InRelease
Hit:3 http://security.debian.org/debian-security buster/updates InRelease
Hit:4 http://deb.debian.org/debian buster-backports InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
I confirmed with one of the package mantainers, the available version _3.6.7-4+deb10u2 is the latest version, and apt should be aware of this, yet:
apt-cache policy libgnutls28-dev
libgnutls28-dev:
Installed: (none)
Candidate: 3.6.7-4
Version table:
3.6.7-4 500
500 http://deb.debian.org/debian buster/main amd64 Packages
So this is an apt issue. For some reason apt, even with supercow powers, is stuck in an outdated state of affairs. Any guidance would be greatly appreciated.
Found a solution, thanks to kind guidance by Andreas Metzler.
The mirror apparently is stuck with an outdated package index. I was using deb.debian.org that as i understand redirects apt to a nearby server. I updated the sources.list files in /etc/apt/ so they now point to a fixed nearby server and everything runs ok.

Installing Missing executable for Buildozer

I am new to coding in general and I have developed a simple app I want to convert to an .apk file.
I use Windows 10 so I have installed Oracle VM VirtualBox to run buildozer for conversion.
I have come across more different errors than I care to count, but the crux of my issues appear to be that I am missing executables:
[WARNING]: Missing executable: autoconf is not installed
[WARNING]: Missing executable: automake is not installed
[WARNING]: Missing executable: libtoolize is not installed
I have attempted to use:
sudo apt-get install autoconf
but I get the following:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
automake autotools-dev m4
Suggested packages:
autoconf-archive gnu-standards autoconf-doc libtool m4-doc
The following NEW packages will be installed:
autoconf automake autotools-dev m4
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 870 kB/1,067 kB of archives.
After this operation, 3,943 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Ign:1 http://fr.archive.ubuntu.com/ubuntu zesty/main amd64 autoconf all 2.69-10
Ign:2 http://fr.archive.ubuntu.com/ubuntu zesty/main amd64 autotools-dev all 20161112.1
Ign:3 http://fr.archive.ubuntu.com/ubuntu zesty/main amd64 automake all 1:1.15-5ubuntu1
Err:1 http://fr.archive.ubuntu.com/ubuntu zesty/main i386 autoconf all 2.69-10
404 Not Found [IP: 194.158.119.186 80]
Err:2 http://fr.archive.ubuntu.com/ubuntu zesty/main i386 autotools-dev all 20161112.1
404 Not Found [IP: 194.158.119.186 80]
Err:3 http://fr.archive.ubuntu.com/ubuntu zesty/main i386 automake all 1:1.15-5ubuntu1
404 Not Found [IP: 194.158.119.186 80]
E: Failed to fetch http://fr.archive.ubuntu.com/ubuntu/pool/main a/autoconf/autoconf_2.69-10_all.deb 404 Not Found [IP: 194.158.119.186 80]
E: Failed to fetch http://fr.archive.ubuntu.com/ubuntu/pool/main/a/autotools-dev/autotools-dev_20161112.1_all.deb 404 Not Found [IP: 194.158.119.186 80]
E: Failed to fetch http://fr.archive.ubuntu.com/ubuntu/pool/main/a/automake-1.15/automake_1.15-5ubuntu1_all.deb 404 Not Found [IP: 194.158.119.186 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
I have hit a wall after searching online for days looking for a solution but I have made no progress.
Ubuntu 17.04 (Zesty Zapus) reached End of Life on January 13, 2018. On the VM, you have to upgrade from Ubuntu 17.04 Zesty to Ubuntu 18.04 LTS Bionic. Please do the following:
sudo sed -i 's/zesty/bionic/g' /etc/apt/sources.list
sudo apt update
sudo apt upgrade
sudo apt dist-upgrade
sudo apt autoremove
sudo apt clean
Reboot the system

Resources