Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

On issuing the command sudo dpkg -i (package name) at chronos@localhost ~ $, I get the response sudo: dpkg: command not found. Anyone know why? I'm trying to load version 3 of network-manager and three related files to correct a known problem accessing wifi in 12.04 on some Toshiba computers, so Ubuntu is offline. I've downloaded the four files, but I'm unclear on where they should be stored in order for dpkg -i (package name) to find them. Could I pursue the installation via apt-get if dpkg is actually missing. If so, what would be the correct command syntax?

share|improve this question

2 Answers 2

sudo dpkg -i is used to install deb file. if you have deb files downloaded then run this command. try to search the hardware driver in hardware manager.

apt-get install command search the software manager which is hosted on launchpad, whether this software is available on software channel.

for example: sudo apt-get install vlc

if it is available in software channel, it will install without any problem.

first of all please tell do you have the deb files? is yes then try: sudo dpkg -i

else search the driver in hardware manager. And if still you didnt get the driver install, please reply the model name of your system and wifi model build in the system. so that I can tell you how can you install the drivers.

share|improve this answer
    
Okay, I discovered why I couldn't find dpkg--it's in chroot, and I was in chronos@localhost. Switched to chroot, and there it was! Typical greenhorn error, I suppose. –  Graubart Apr 23 at 22:23
    
Finally stumbled onto how to extract the wifi model information. –  Graubart Apr 24 at 3:18

It is unlikely that dpkg is missing from your system. If such a thing were possible, you couldn't download and install dpkg without dpkg! What is the result of:

dpkg --help

If it outputs text about how to use the command, then the command is present.

It doesn't matter where you downloaded the deb files as long as you navigate the terminal to that location first. For example, suppose you downloaded the files to your desktop. Then in the terminal:

cd ~/Desktop

Now list the contents of the directory:

ls

Are all the debs shown?

network-manager-3.99-00-ubuntu.deb
some_other_file-ubuntu3.deb
etc.deb

If so, install them:

sudo dpkg -i network*.deb

You can use the wildcard * to keep from typing the entire file name. You can also do:

sudo dpkg -i *.deb 

dpkg will attempt to install all of them at once and notify you if you have any missing dependencies.

share|improve this answer
    
Tried dpkg --help and was again told the command didn't exist. As noted, I entered the commands from chronos@localhost~$. Could that be the problem? –  Graubart Apr 23 at 2:58

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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