5

I am new in Linux and debian 10 (KDE) is the first distribution that I am using.

But when I'm trying to install atom editor when I use this command It gives me an error :

command >> sudo apt-get install atom

Output :

Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package atom

I looked it up in google but i couldn't find anything to fix my problem.

Jeff Schaller
  • 66,199
  • 35
  • 114
  • 250
  • Did you run `sudo apt-get update` first? – Panki Aug 27 '19 at 11:20
  • You can download a .deb package and install it: `$ wget https://atom.io/download/deb -O atom.deb` `$ sudo dpkg -i atom.deb` More info here: https://tecadmin.net/install-atom-editor-on-ubuntu-debian-and-linuxmint/ – pavelsaman Aug 27 '19 at 11:21
  • yes I did sudo apt-get update – amirhosein majidi Aug 27 '19 at 11:25
  • I tried with dpkg but it says that the dependencies are not installed – amirhosein majidi Aug 27 '19 at 11:27
  • 3
    Have a look at what's missing at your computer and try to install it using apt. Some guidance for you is here: https://github.com/atom/atom#linux You're likely missing some of these `sudo apt install git gconf2 gconf-service libgtk2.0-0 libudev1 libgcrypt20 libnotify4 libxtst6 libnss3 python gvfs-bin xdg-utils libcap2` – pavelsaman Aug 27 '19 at 11:44
  • Following [this guide](https://flight-manual.atom.io/getting-started/sections/installing-atom/#debian-and-ubuntu-debapt) I could install it in Debian 9. – schrodingerscatcuriosity Aug 27 '19 at 12:58
  • Looks like the packaging for debian is a bit stalled. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=747824 – Stewart May 24 '20 at 14:41
  • This command "should work", but it does't work on Ubuntu 18.04. curl -s https://packagecloud.io/install/repositories/AtomEditor/atom/script.deb.sh | sudo bash – John Dec 21 '20 at 02:04

2 Answers2

2

Try the following:

sudo snap install atom --classic
Nihal
  • 21
  • 2
1

To install atom through apt, you need to add the atom repository :

wget -qO - https://packagecloud.io/AtomEditor/atom/gpgkey | sudo apt-key add -
sudo sh -c 'echo "deb [arch=amd64] https://packagecloud.io/AtomEditor/atom/any/ any main" > /etc/apt/sources.list.d/atom.list'
sudo apt-get update
sudo apt-get install atom

Atom manual : Debian and Ubuntu (deb/apt)

GAD3R
  • 63,407
  • 31
  • 131
  • 192