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 any InRelease [23.2 kB]

Get:18 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 (``)


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 - | sudo apt-key add -

Line 2 $ sudo sh -c ‘echo “deb [arch=amd64] 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 bionic InRelease
Get:5 bionic-security InRelease [88.7 kB]
Get:6 bionic-updates InRelease [88.7 kB]
Get:7 bionic-security/main i386 Packages [847 kB]
Get:8 bionic-updates/main i386 Packages [1142 kB]
Get:9 any InRelease [23.2 kB]
Get:10 bionic-security/main Translation-en [277 kB]
Get:11 bionic-security/main i386 DEP-11 Metadata [48.9 kB]
Get:12 bionic-security/main DEP-11 48x48 Icons [28.4 kB]
Get:13 bionic-security/main DEP-11 64x64 Icons [62.4 kB]
Get:14 bionic-updates/main Translation-en [367 kB]
Get:15 bionic-security/restricted i386 Packages [8972 B]
Get:16 bionic-security/restricted Translation-en [22.1 kB]
Get:17 bionic-security/universe i386 Packages [965 kB]
Get:18 any/main amd64 Packages [40.5 kB]
Get:19 bionic-updates/main i386 DEP-11 Metadata [295 kB]
Get:20 bionic-updates/main DEP-11 48x48 Icons [81.9 kB]
Get:21 bionic-updates/main DEP-11 64x64 Icons [157 kB]
Get:22 bionic-updates/restricted i386 Packages [17.2 kB]
Get:23 bionic-updates/restricted Translation-en [24.6 kB]
Get:24 bionic-updates/universe i386 Packages [1544 kB]
Get:25 bionic-security/universe Translation-en [241 kB]
Get:26 bionic-security/universe i386 DEP-11 Metadata [59.5 kB]
Get:27 bionic-security/universe DEP-11 48x48 Icons [19.8 kB]
Get:28 bionic-security/universe DEP-11 64x64 Icons [129 kB]
Get:29 bionic-security/multiverse opti386 Packages [4812 B]
Get:30 bionic-security/multiverse Translation-en [2964 B]
Get:31 bionic-security/multiverse i386 DEP-11 Metadata [2464 B]
Get:32 bionic-updates/universe Translation-en [354 kB]
Get:33 bionic-updates/universe i386 DEP-11 Metadata [288 kB]
Get:34 bionic-updates/universe DEP-11 48x48 Icons [214 kB]
Get:35 bionic-updates/universe DEP-11 64x64 Icons [484 kB]
Get:36 bionic-updates/multiverse i386 Packages [12.9 kB]
Get:37 bionic-updates/multiverse Translation-en [6980 B]
Get:38 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.

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.