I downloaded VS Code's .deb
file for Ubuntu. I renamed it to vs.deb
.
Then I go to my downloads directory:
cd ~/Downloads
And now that I'm here, I try to install it:
sudo apt install vs.deb
And here's what I get:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package vs.deb
E: Couldn't find any package by glob 'vs.deb'
But when I install it using ./vs.deb
, then it gets installed:
sudo apt install ./vs.deb
Why doesn't Linux accept the name of the file inside the same directory without requiring the relative path?
./
at the start" – Kulfy Aug 26 '21 at 09:50PATH
environment variable, e.g./usr/local/bin:/bin:...
then no, it would make no sense forapt
to search$PATH
for.deb
files given as args. The querent made a wrong assumption about the shell being relevant. Your comment might be misleading to beginners who don't realize that it doesn't actually apply; I'd suggest deleting it. – Peter Cordes Aug 27 '21 at 04:46