5

I have download the QQ2012's deb in downlaod files, but when I install the deb, system tell me:

$ sudo dpkg -i wineqq2012-20120719-longene.deb
[sudo] password for collins: 
dpkg: error processing wineqq2012-20120719-longene.deb (--install):
 cannot access archive: No such file or directory
Errors were encountered while processing:
 wineqq2012-20120719-longene.deb
9

The error message No such file or directory means that the .deb file does not exist, or does not exist in the current directory.

The ~ between : and $ in the prompt represents the current working directory. ~ (when the next character is a / or, as in this case, nothing at all) is shorthand for your home directory, /home/collins.

You said you downloaded the .deb file "in download files." Assuming this means you downloaded it to your Downloads folder, that means it's located in /home/collins/Downloads rather than /home/collins.

So you should be able to install it by running this command:

sudo dpkg -i ~/Downloads/wineqq2012-20120719-longene.deb

If that doesn't work, try typing

sudo dpkg -i

without pressing Enter. Add a space to the end. Then drag the file from Nautilus (the file browser) into the Terminal window. That will paste its full path. Then press Enter.

2

I think you are running the command from a different directory.

Open Terminal (Ctrl+Alt+T) and make sure that the file you trying to run is listed when you do the ls command.

If you have downloaded the file using a web browser browser, then the file should be located in ~/Downloads. Change the directory to your downloads folder with cd ~/Downloads.

Once you have made sure that ls lists the file, then run the command:

sudo dpkg -i wineqq2012-20120719-longene.deb
0

Modify the command the following way:

sudo dpkg -i ./wineqq2012-20120719-longene.deb

This will make dpkg search the package in the current folder.

BTW, you should you use apt, to get the pkg listed in the log files, and more:

sudo apt install ./wineqq2012-20120719-longene.deb

protected by Community Nov 12 '18 at 12:49

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.