Difficulty installing the Mono Repository. (Solved)

If none of the more specific forums is the right place to ask

Difficulty installing the Mono Repository. (Solved)

Postby Tekmon_Xonic » 2018-06-15 21:43

Greetings everyone,

I am currently having some difficulty installing the mono repository.

Code: Select all
sudo apt install apt-transport-https dirmngr
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb https://download.mono-project.com/repo/debian stable-stretch main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
sudo apt update


Here are my steps. I have correctly done the first to lines of code, logging in as super user in the terminal. I entered the code as follows.

Code: Select all
echo "deb https://download.mono-project.com/repo/debian stable-stretch main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list


Followed by the following error.

Code: Select all
bash: sudo: command not found


It would seem that the sudo command does not work directly. I am wondering about how I would go about granting super user to that second half of that command

Code: Select all
| sudo tee /etc/apt/sources.list.d/mono-official-stable.list


If anyone could shed some light on this, I would greatly appreciate it.

Thank you for your time. :)
Last edited by Tekmon_Xonic on 2018-06-15 23:17, edited 1 time in total.
Tekmon_Xonic
 
Posts: 14
Joined: 2018-06-15 21:23

Re: Difficulty installing the Mono Repository.

Postby bw123 » 2018-06-15 22:05

It's just one of those things you have to figure out, some people use sudo, some use su to become root. Just take your time and find the right way for you. If sudo isn't installed there's a wiki that should tell you how. Try a websearch for 'debian wiki sudo'

Practice a little in the shell before you do too much altering the system? Are you sure that is the best way to install mono on debian? Are you using debian?
Last edited by bw123 on 2018-06-15 22:09, edited 1 time in total.
User avatar
bw123
 
Posts: 3577
Joined: 2011-05-09 06:02
Location: TN_USA

Re: Difficulty installing the Mono Repository.

Postby GarryRicketson » 2018-06-15 22:07

My guess is that you have not yet installed "sudo", if you need to do something as root, you can use "su" :
Code: Select all
man su
, Debian does not come with the Ubuntu feature "sudo" by default.
Before you start doing things that require root privileges, or being a "super user", you should maybe read some documentation about Debian, a good place to start : https://wiki.debian.org/DontBreakDebian

I am not sure about "the Mono Repository", what is that ? I am not any kind of "super user" or expert, I just stick with the Debian repositories for any packages I need. Maybe "the Mono Repository" has some kind of support and it would be ask them. I do know "sudo" does not work if it is not installed. Since I am not a "super user" never have tried installing or using it either. Guess this is not much help, sorry,...
User avatar
GarryRicketson
 
Posts: 5191
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: Difficulty installing the Mono Repository.

Postby Tekmon_Xonic » 2018-06-15 22:17

@ bw123

Hmmmm.... Well then you have a good suggestion there. I think I should search more for how to install the mono repository, and perhaps check out the wiki too for information.

Thank you for your quick suggestion bw123. I appreciate it.

Edit:

Yes, I am using Debian 9.40 Stretch.

@ GarryRicketson

That's how I inputed the first two commands Garry, logging in as super user using the SU command. I just learned that sudo is not a native command of Debian, so that would be why I'm having difficulties.

The Mono Repository is a repository that has packages that rely on the .NET development platform. One of such packages that I'm looking to acquire from the repository is an open source game called OpenRA. An open source reimplementation of the classic Command & Conquer games.

Thanks for the link to the wiki Garry. Sounds like something I should definitely check out. I appreciate it.
Tekmon_Xonic
 
Posts: 14
Joined: 2018-06-15 21:23

Re: Difficulty installing the Mono Repository.

Postby Tekmon_Xonic » 2018-06-15 23:17

Good news everyone!

I have figured it out! All I had to do was remove the sudo command from the first line, I was already logged in as super user, so any sudo command after granting myself those privileges was unnecessary.

I changed this.

Code: Select all
echo "deb https://download.mono-project.com/repo/debian stable-stretch main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list


To this.

Code: Select all
echo "deb https://download.mono-project.com/repo/debian stable-stretch main" | tee /etc/apt/sources.list.d/mono-official-stable.list


Thank you very much everyone for your quick responses. I really appreciate it. :)
Tekmon_Xonic
 
Posts: 14
Joined: 2018-06-15 21:23

Re: Difficulty installing the Mono Repository. (Solved)

Postby GarryRicketson » 2018-06-16 00:55

Your welcome, and good to see you got it worked out.
User avatar
GarryRicketson
 
Posts: 5191
Joined: 2015-01-20 22:16
Location: Durango, Mexico


Return to General Questions

Who is online

Users browsing this forum: No registered users and 11 guests

fashionable