How do I successfully install Atom on Linux?

I was trying to install Atom on my Xubuntu 18.04 LTS, but I failed. I followed the instructions on Atom’s official website (the Flight Manual).

I remember getting an “OK” along the way.

When I entered the last line of code in the first section of code in the Atom Flight Manual I got a result that had these two things:

Get:9 https://packagecloud.io/AtomEditor/atom/any any InRelease [23.2 kB]

Get:18 https://packagecloud.io/AtomEditor/atom/any any/main amd64 Packages [40.5 kB]

On the last line I saw this, “Fetched 7949 kB in 13s (596 kB/s)”

Then, my dear reader I entered this command:

$ sudo apt-get install atom

The result was this:

“Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package atom”

I tried this also:

$ sudo apt-get install atom beta

I got this result:

“Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package atom
E: Unable to locate package beta”

Please what went wrong? I am new to Linux.

I initially wrote the steps I stook, bit by bit, but they contain URLs. I wad told by the computer program that I’m only entitled to 2 URLs as a new user. If I were to post the steps with the URLs comment by comment, I’d have to comment nineteen times.

:wave: Welcome!

You said you’re using the flight manual - can you confirm that you added the atom package repository before attempting to apt-get?

You can check that in your sources.list file.

If it’s not there, or if there’s a typo, you may need to do it again.

Also: You can always include the full output here by putting links in backticks (``)

ex.

 `https://packagecloud.io/AtomEditor/atom/any`
1 Like

I am sorry, but I don’t know what you mean by “atom package repository”, sir. I searched for this term on the webpage your link led me to, sir, but I didn’t see it. I only saw ATOM PACKAGE. I will include the full output here shortly. Thank you very much. I didn’t know that I’d get a reply this early. God bless you, sir!

Sorry @Emi9 you will have to select the linux tab on the page I linked to so you see the linux instructions.

Firstly what I did was I entered the following on or IN my terminal:

Line 1 $ wget -qO - https://packagecloud.io/AtomEditor/atom/gpgkey | sudo apt-key add -

Line 2 $ sudo sh -c ‘echo “deb [arch=amd64] https://packagecloud.io/AtomEditor/atom/any/ any main” > /etc/apt/sources.list.d/atom.list’

I can’t really remember but I know that after either line 1 or line 2 I got an “OK” from the terminal.

Line 3 $ sudo apt-get update

After this line, I got these results. I’ll put the links or URLs in back ticks:

gn:1 cdrom://Xubuntu 18.04.5 LTS Bionic Beaver - Release i386 (20200806.1) bionic InRelease
Hit:2 cdrom://Xubuntu 18.04.5 LTS Bionic Beaver - Release i386 (20200806.1) bionic Release
Hit:4 http://archive.ubuntu.com/ubuntu bionic InRelease
Get:5 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Get:6 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:7 http://security.ubuntu.com/ubuntu bionic-security/main i386 Packages [847 kB]
Get:8 http://archive.ubuntu.com/ubuntu bionic-updates/main i386 Packages [1142 kB]
Get:9 https://packagecloud.io/AtomEditor/atom/any any InRelease [23.2 kB]
Get:10 http://security.ubuntu.com/ubuntu bionic-security/main Translation-en [277 kB]
Get:11 http://security.ubuntu.com/ubuntu bionic-security/main i386 DEP-11 Metadata [48.9 kB]
Get:12 http://security.ubuntu.com/ubuntu bionic-security/main DEP-11 48x48 Icons [28.4 kB]
Get:13 http://security.ubuntu.com/ubuntu bionic-security/main DEP-11 64x64 Icons [62.4 kB]
Get:14 http://archive.ubuntu.com/ubuntu bionic-updates/main Translation-en [367 kB]
Get:15 http://security.ubuntu.com/ubuntu bionic-security/restricted i386 Packages [8972 B]
Get:16 http://security.ubuntu.com/ubuntu bionic-security/restricted Translation-en [22.1 kB]
Get:17 http://security.ubuntu.com/ubuntu bionic-security/universe i386 Packages [965 kB]
Get:18 https://packagecloud.io/AtomEditor/atom/any any/main amd64 Packages [40.5 kB]
Get:19 http://archive.ubuntu.com/ubuntu bionic-updates/main i386 DEP-11 Metadata [295 kB]
Get:20 http://archive.ubuntu.com/ubuntu bionic-updates/main DEP-11 48x48 Icons [81.9 kB]
Get:21 http://archive.ubuntu.com/ubuntu bionic-updates/main DEP-11 64x64 Icons [157 kB]
Get:22 http://archive.ubuntu.com/ubuntu bionic-updates/restricted i386 Packages [17.2 kB]
Get:23 http://archive.ubuntu.com/ubuntu bionic-updates/restricted Translation-en [24.6 kB]
Get:24 http://archive.ubuntu.com/ubuntu bionic-updates/universe i386 Packages [1544 kB]
Get:25 http://security.ubuntu.com/ubuntu bionic-security/universe Translation-en [241 kB]
Get:26 http://security.ubuntu.com/ubuntu bionic-security/universe i386 DEP-11 Metadata [59.5 kB]
Get:27 http://security.ubuntu.com/ubuntu bionic-security/universe DEP-11 48x48 Icons [19.8 kB]
Get:28 http://security.ubuntu.com/ubuntu bionic-security/universe DEP-11 64x64 Icons [129 kB]
Get:29 http://security.ubuntu.com/ubuntu bionic-security/multiverse opti386 Packages [4812 B]
Get:30 http://security.ubuntu.com/ubuntu bionic-security/multiverse Translation-en [2964 B]
Get:31 http://security.ubuntu.com/ubuntu bionic-security/multiverse i386 DEP-11 Metadata [2464 B]
Get:32 http://archive.ubuntu.com/ubuntu bionic-updates/universe Translation-en [354 kB]
Get:33 http://archive.ubuntu.com/ubuntu bionic-updates/universe i386 DEP-11 Metadata [288 kB]
Get:34 http://archive.ubuntu.com/ubuntu bionic-updates/universe DEP-11 48x48 Icons [214 kB]
Get:35 http://archive.ubuntu.com/ubuntu bionic-updates/universe DEP-11 64x64 Icons [484 kB]
Get:36 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse i386 Packages [12.9 kB]
Get:37 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse Translation-en [6980 B]
Get:38 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse i386 DEP-11 Metadata [2464 B]
Fetched 7949 kB in 13s (596 kB/s)

Then when I entered this

$ sudo apt-get install atom I got an error message. I mentioned it in my post.

Yes, I can. I explained how I did this above. Please see my previous comment.

my guess would be that there’s something up with your sources.list. There are some useful troubleshooting hints here:

You can also download the debian Atom package directly.

https://atom.io/download/deb

and then follow the instructions from the Atom flight manual:

 # Install Atom
 sudo dpkg -i atom-amd64.deb
 # Install Atom's dependencies if they are missing
 sudo apt-get -f install

I hope that helps.