Score:-1

how to install "/Downloads/code_1.78.2-1683731010_amd64.deb" file getting this error

az flag

Getting this error

birjendra@birjendra-HP-Laptop-14-bs0xx:~$ sudo apt install ./home/birjendra/Downloads/code_1.78.2-1683731010_amd64.deb
Reading package lists... Done
E: Unsupported file ./home/birjendra/Downloads/code_1.78.2-1683731010_amd64.deb given on commandline

Please help.

muru avatar
us flag
It should be either `sudo apt install /home/birjendra/Downloads/code_1.78.2-1683731010_amd64.deb` without the `.`, or `sudo apt install ./Downloads/code_1.78.2-1683731010_amd64.deb` without `/home/birjendra` if you're already in `/home/birjendra`, or `sudo apt install ~/Downloads/code_1.78.2-1683731010_amd64.deb`
Score:1
jp flag

The command that you ran has wrong syntax. You are already in the home directory so You can directly access Downloads from there;

So its not

sudo apt install ./home/birjendra/Downloads/code_1.78.2-1683731010_amd64.deb

Take a fresh terminal and follow;

cd Downloads 

or

cd ~/Downloads

Once you are in the Downloads directory(type pwd in the Terminal to verify you're in Downloads),

sudo dpkg -i code_1.78.2-1683731010_amd64.deb

That should install the package to /home/birjendra

Hope it helps!!

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.