4

I have a Canon MG2220 multifunction printer that I would like to use with Ubuntu 13.04 (which I just installed). There are no print drivers available in the Ubuntu Software Center, so I downloaded some Linux drivers from Canon's Asia website. They are:

  • scangearmp-mg2200series-2.00-1-deb.tar.gz
  • cnijfilter-mg2200series-3.80-1-deb.tar.gz

I have found how to install ".tar.gz" files, but this one has ".tar.gz" in front of the ".deb", and I am concerned about doing anything that may screw up my system.

Can I use the same method for installing ".deb.tar.gz" as ".tar.gz" by following these instructions I found on Ask Ubuntu?

5 Answers5

3

Here's what is going on:

A .tar.gz file is a compressed file, similar to a Windows .zip. Some programs come as source code packed into a .tar.gz file, which you then use the instructions that you found for.

However, what you have is a .deb file, which installs a program on your computer without having to compile it. This deb file is packed inside a .tar.gz (often referred to as a tarball), which means that you first uncompress it and then execute it with a program called dpkg. Run the following commands:

tar -xzvf filename.deb.tar.gz filename.deb
sudo dpkg -i filename.deb

Substitute "filename" for the name of your file without file extensions (hint: you can start typing in the name of an existing file and then press TAB to have the command prompt autocomplete it for you). So, if you had a file named blender.deb.tar.gz, you would type the following:

tar -xzvf blender.deb.tar.gz blender.deb
sudo dpkg -i blender.deb

If you don't want to mess around with changing folders through the command prompt then just put the files in your home folder, and then run the above commands.

fouric
  • 4,698
2

Just right-click the file and select "Extract here". That will give you a folder with a file named "something.deb". Double-click that file and you'll go to the Ubuntu Software Center where you can install it. Should be no need for any commandline stuff, unless you prefer to use commands rather than graphical tools.

2

My printer is up and running. I extracted the files by right mouse clicking on the .deb file folders and then I went into the folder titled "Packages" and double clicked on them and it opened up Ubuntu Software Center and I was able to install the drivers that way. I appreciate everyone who helped me on this issue. Sincerely, Dennis Primm

0

Although the question is 8 years old it is still relevant.

The answers given are NOT correct.

The file cnijfilter-mp280series-3.40-1-deb.tar.gz is NOT a .deb file in tar.gz format. Please note that the "deb" suffix is separated by a dash, not a dot.

This is just a normal archive and the DEB at the end only means that it is tailored for Debian based systems

The tar.gz file, once extracted with tar -xfz cnijfilter-mp280series-3.40-1-deb can be accessed. Inside of it, there is a shell script called 'install.sh' that does the installation.

It's pretty confusing, I know. But I wonder why any answer was accepted, as this will never install in this way.

TL;DR:

tar -xfz cnijfilter-mp280series-3.40-1-deb
cd cnijfilter-mp280series-3.40-1-deb
sudo bash ./install
runlevel0
  • 372
0

After you extract the file it will just be a .deb file. Then you just type this in the command line:

sudo dpkg -i foo.deb

Where "foo.deb" is your file.