mono: command not found - linux

I followed these instructions (for ubuntu 20.04) ending in sudo apt install mono-complete. Everything looks fine during download/install, but afterwards my console looks roughly like this:
$ mono
command not found: mono
$ which mono
mono not found
find / -name mono finds some directories, but no executables.
$ lsb_release -a
No LSB modules are available.
Distributor ID: Pop
Description: Pop!_OS 21.04
Release: 21.04
Codename: hirsute
I've been searching SO and google for an hour now with no luck. Where's my mono???

Related

Snapcraft doesnt install snaps, gives a mount error

had it all working and the next day it randomly gave this error to me. I dont know what I did.
also i had a error on the ubuntu screen itself when executed this command “unable to mount volume an operation is already pending” something like that. cant get to re create this
$ snap install ubuntu-frame
error: cannot perform the following tasks:
Run hook prepare-plug-graphics-core20 of snap "ubuntu-frame" (run hook "prepare-plug-graphics-core20": cannot perform operation: mount --bind /snap/core20/current/etc/nsswitch.conf /tmp/snap.rootfs_lOwlQ8/etc/nsswitch.conf: Permission denied)
Ubuntu version
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.5 LTS
Release: 20.04
Codename: focal
Snap version
snap 2.57.6
snapd 2.57.6
series 16
ubuntu 20.04
kernel 4.9.333-127
Its an odroid i have to get it in a kiosk for work. and all it gave me is headaches with errors.
I tried reinstalling snap purged it. didnt fix anything.

Need to get Linux Dist name from different Dists

want to code a script that is for multiple linux distributions.
Also want to add commands that check, and if not exist install some packages.. So, need a solution to ckeck Dist name (like Debian or RedHat) to execute the right command for this Dist.
I have tryed "lsb_release" but is this working all the follow dists? : Debian / Ubuntu | Red Hat / Fedora / Suse / Cent OS" If yes, any idea where i can get the lsb_release output from all the Dists above?
in Debian I get this from lsb_release -a 2>/dev/null | grep Distributor:
Distributor ID: Debian
at Rasberry, I get this:
Distributor ID: Raspbian
but what about other Distributions?
Yes, the lsb_release should print the distribution information after installing the required package.
e,g:
On debian based distro:
apt-get install lsb-release
On RHEL based distro:
yum install redhat-lsb-core
or
yum install redhat-lsb
Alernative method : You can get the distribution information through:
On debian based disto
cat /proc/version
cat /etc/issue
cat /etc/issue.net
cat /etc/lsb-release
cat /etc/os-release
On RHEL based distro :
cat /proc/version
cat /etc/centos-release
cat /etc/lsb-release
cat /etc/redhat-release
cat /etc/system-release
seems that all modern linux distributions have /etc/os-release file with ID=distribution (unfortunately have no Raspberry around to test).

md5deep ubuntu install - command not found

I am trying to use md5deep on ubunutu. I have run the following commands:
sudo apt-get update
sudo apt-get install md5deep
This successfully installs. However, I then run:
md5deep
And get the error message:
md5deep:command not found
I have read the first 10-20 google pages on installing this and watched a number of youtube videos but unable to get part this first step.
Can anyone explain what I am doing wrong here? (not sure if this is a linux question rather than a md5deep question)
My output for:
dpkg -L md5deep
is:
/.
/usr
/usr/share
/usr/share/doc
/usr/share/doc/md5deep
/usr/share/doc/md5deep/copyright
/usr/share/doc/md5deep/changelog.Debian.gz
My output for:
dpkg -L hashdeep
is:
/.
/usr
/usr/share
/usr/share/doc
/usr/share/doc/hashdeep
/usr/share/doc/hashdeep/README.md.gz
/usr/share/doc/hashdeep/README.Debian
/usr/share/doc/hashdeep/FILEFORMAT
/usr/share/doc/hashdeep/TODO.gz
/usr/share/doc/hashdeep/copyright
/usr/share/doc/hashdeep/NEWS.gz
/usr/share/doc/hashdeep/changelog.Debian.gz
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/hashdeep.1.gz
/usr/bin
/usr/bin/hashdeep
Running off: Ubuntu 16.04.1 LTS
TLDR: This is bug of hashdeep package (since debian); Use hashdeep -c md5 in older ubuntu; fixed in 17.04 (upgrade your ubuntu or try to downgrade package or use backports; or try to recompile into deb newer package or do sudo ln -s /usr/bin/hashdeep /usr/bin/md5deep or sudo ln -s hashdeep /usr/bin/md5deep as hack).
In debian and Ubuntu (some version before 16.04 or in it, actually 15.10) md5deep package was replaced by hashdeep package. Now, in 17.04 "zesty" md5deep is not a real package but just a "link" (transitional dummy package) to hashdeep package:
http://packages.ubuntu.com/zesty/md5deep
transitional dummy package for hashdeep
Most recent version of hashdeep (from 17.04 "zesty") http://packages.ubuntu.com/zesty/hashdeep can be installed by sudo apt-get install hashdeep and has all needed commands:
http://packages.ubuntu.com/zesty/amd64/hashdeep/filelist (only /usr/bin part)
/usr/bin/hashdeep
/usr/bin/md5deep
/usr/bin/sha1deep
/usr/bin/sha256deep
/usr/bin/tigerdeep
/usr/bin/whirlpooldeep
But the problem (bug) is that 16.04 and 16.10 versions of hashdeep lacked 5 additional names in /usr/bin including md5deep:
http://packages.ubuntu.com/xenial/amd64/hashdeep/filelist
http://packages.ubuntu.com/yakkety/amd64/hashdeep/filelist
/usr/bin/hashdeep
This is marked in Changelog of the recent package: http://changelogs.ubuntu.com/changelogs/pool/universe/h/hashdeep/hashdeep_4.4-4/changelog
hashdeep (4.4-3) ... 22 Sep 2016
debian/hashdeep.links:
- Added to enable multi-call for md5deep and others.
(Closes: #795053, LP: #1525217, #1577293)
Bugs listed are:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=795053 "hashdeep: Important functions disabled by symlink removal" - 10 Aug 2015 - Found in version hashdeep/4.4-1; Fixed in version hashdeep/4.4-3
https://bugs.launchpad.net/ubuntu/+source/md5deep/+bug/1525217 "md5deep binary is missing" - Ubuntu 15.10 - 2015-12-11 -- 2017-03-29
https://bugs.launchpad.net/ubuntu/+source/hashdeep/+bug/1577293 "binary not available in package" - 16.04 - 2016-05-02 -- 2016-11-03
The program has different options and features when run with the names "hashdeep" and "md5deep"

Installing files in Ubuntu

I need to download the NVIDIA CUDA tool kit. I am running on Ubuntu server, I don't know which one to download. I checked the ubuntu version, below is the output.
root#ubuserver3:/home/admin# uname -m && cat /etc/*release
i686
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.04
DISTRIB_CODENAME=precise
DISTRIB_DESCRIPTION="Ubuntu 12.04.4 LTS"
NAME="Ubuntu"
VERSION="12.04.4 LTS, Precise Pangolin"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu precise (12.04.4 LTS)"
VERSION_ID="12.04"
The download link is this - https://developer.nvidia.com/cuda-downloads
Which one should I download? There are 2 files .run and .deb under 32 bit of Ubuntu 12.04. I have no idea.
They are both work, but there is a little difference.
For the deb package, you can use
$ sudo dpkg -i cuda_deb_file.deb
the .run package, just
$ chmod +x cuda_run_file.run
$ ./cuda_run_file.run
The first one install the file to /usr/bin/ /usr/include/ /usr/lib/, but
the second one need you specify the path before installation.

How to replace "as" tool with the x86 version on REHL?

I ran into below problem on RHEL while using gcc to compile a C file.
[test]$ gcc hello.c
as: unrecognized option '-Qy'
Then found my "as" is the MIPS version:
[test]$ as -v
GNU assembler version 2.13.2 (mips-dec-ultrix42) using BFD version 2.13.2
So I tried to remove MIPS utilities and reinstall x86 gcc and x86 binutilites by issuing:
sudo yum erase binutils-mips64-linux-gnu.x86_64
sudo yum install gcc-4.4.6-4.el6.x86_64
sudo yum install binutils-2.20.51.0.2-5.34.el6.x86_64
But the problem still occurred. Anyone has any clue on how to replace my "as" with a x86 version?
BTW, Linux release info is as following:
[test]$ lsb_release -a LSB Version:
:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:gaphics-4.0-noarch:printing-4.0-amd64:printing- 4.0-noarch
Distributor ID: RedHatEnterpriseWorkstation Description: Red Hat
Enterprise Linux Workstation release 6.3 (Satiago) Release: 6.3
Codename: Santiago

Resources