Can't install snap - linux

Today, I want to install the mailspring by snap. but my terminal gives me this:
How can I fix it.
My Ubuntu system below.

Just simply run
apt update
then run
apt list --upgradable
finally, run the below command to install snapd
sudo apt install snapd
I hope this will help*

did you do apt update before trying to install the package?

Related

How do I install shutter?

I am trying to install shutter as I want to take screenshots while learning in parrot.
A web search said shutter is the best so I want to try this.
step 1 sudo apt-get install shutter
response - Package 'shutter' has no installation candidate
Add the PPA
sudo add-apt-repository ppa:linuxuprising/shutter
Update the repo
suo apt-get update
Reform Installation
sudo apt-get install shutter

How install ubuntu-desktop from the source?

I do not have an access to the internet from my device with Ubuntu 18.04 software and my question is how could I install a desktop?
sudo apt-get ubuntu-desktop doesn't work so I thought that it is possible to install it from the source, but I can't find it.
First, install the taskel manager
sudo apt-get install taskel
Then, you can choose a Dislpay manager, I suggest lightdm
sudo apt-get install lightdm
Then, choose your desktop enviroment.
For GNOME: run taskel.
For KDE Plasma: run sudo apt-get install kde-plasma-desktop
You have a variety of Desktop Enviroments you can find here

Install GCC5 in Linux Mint LMDE 2

I'm new in Linux and I would like to unistall gcc 4.9 which is installed in my distro Linux Mint LMDE 2 and install gcc 5. I tried to used the following command:
sudo apt-get install gcc5
but it didn't worked. Can someone please help me with this? Please provide all steps to follow. Thank you in advance
Try this.
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install gcc-5 g++-5
apt-get autoremove
This should work in Linux Mint if I'm not mistaken, as its still using the same respository.
sudo apt-get respository ppa:ubntu-toolchain-r/test
This will install you the correct respositories you need for the computer. Some packages are not automatically known to the computer so you need to install the respositories so the computer can install it.
sudo apt-get update
This will update your computer and all packages and the respoitory, this wil ensure it will now work
sudo apt-get install gcc-5 g++-5
This will install the gcc-5 version you wanted.
sudo apt-get autoremove
When you install certain stuff, some things are no longer needed. Maybe a required package from a previous version that you no longer need, do this to conserve space.

UBUNTU 14.04 - Rstudio - unable to install ggmap library

I'm trying to install ggmap library in my Rstudio but I get the following error:
ERROR: dependency ‘rjson’ is not available for package ‘ggmap’.
Is there any other way of installing it, I tried via menu Tools - Install packages or via console with command install.packages("ggmap").
How can I make it work?
Wild guess (for missing dependency):
sudo apt-get install r-base r-base-dev
sudo apt-get install r-cran-rjson
Filelist of r-cran-rjson package
or installation from Launchpad:
sudo add-apt-repository ppa:opencpu/rstudio
sudo apt-get update
sudo apt-get install rstudio-server
Please see this reference for details
first install rjson library using command prompt
install.packages("rjson",depend =TRUE)
Now install ggmap library
1.install.packages("rjson",depend =TRUE)
OR
2.Download and unzip
http://cran.r-project.org/web/packages/ggmap/index.html
If it doesn't work do
update.packages(repos="http://cran.revolutionanalytics.com")
Best Way is to open synaptic :
tap rjson
right-click ( select for installation )
apply
close synaptic
and in R session install.packages("ggmap")

How to install Go

I want to install Go. I prepared system for support language. But sadly, I can't find Bison and libc6-dev following this command.
sudo apt-get install bison ed gawk gcc libc6-dev make
Then I still can't find the suitable Mercurial for Ubuntu 8.10, which is followed this command.
apt-get install python-setuptools python-dev build-essential
Therefore everyone please guide what I should do in order to install Go completely. My OS is Ubuntu version 8.10. Notice you can post the direct link for me to get packets/files.
Mercurial can typically be installed with
sudo apt-get install mercurial
The package is in universe, which you may not have enabled. The full guide, if you need it, is available here:
https://help.ubuntu.com/community/Mercurial
After installing setuptools et al., the go installation instructions say that you should install mercurial with easy-install, i.e. sudo easy_install mercurial. Are you having trouble with easy_install?
In order to install go with Homebrew run the following command on the terminal:
$ brew install golang
To check the version of go run the following command:
$ go version
To see the location run:
$ which go
To uninstall go :
$ sudo apt-get remove golang-go

Resources