10

I'm new at Linux, so the following question may sound trivial. At the moment I want to install a .deb file, specifically the Cuda Toolbox 8.0, and it uses a .deb file. However, when I use the command

$ sudo dpkg -i cuda-repo-ubuntu1604-8-0-local-ga2_8.0.61-1_amd64.deb

I obtain the following log:

dpkg-deb: error: 'cuda-repo-ubuntu1604-8-0-local-ga2_8.0.61-1_amd64.deb.deb' is not a debian format archive
dpkg: error processing archive cuda-repo-ubuntu1604-8-0-local-ga2_8.0.61-1_amd64.deb.deb (--install):
 subprocess dpkg-deb --control returned error exit status 2
Errors were encountered while processing:
 cuda-repo-ubuntu1604-8-0-local-ga2_8.0.61-1_amd64.deb.deb

The solution looks quite trivial, since it is a standard procedure to install .deb packages and it is written in the nVidia tutorial. But I'm not able to do it. Any help would be appreciated.

ankit7540
  • 4,185
Bruno Lobo
  • 281
  • 1
  • 5
  • 12
  • 1
    you might want to check the file download properly. Confirm with source checksum or file size – George Udosen Mar 25 '17 at 19:31
  • Looks like a known problem: https://devtalk.nvidia.com/default/topic/993274/bad-checksum-for-cuda-8-0-for-ubuntu-14-04/. – mikewhatever Mar 25 '17 at 19:33
  • Is the file named cuda-repo-ubuntu1604-8-0-local-ga2_8.0.61-1_amd64.deb.deb? If so, try renaming it so it only has one .deb at the end, and see if it works now. – heynnema Mar 25 '17 at 21:32
  • I'm downloading again the file. As @mikewhatever mentioned, it looks like a known problem: the checksum didn't match. The inconvenience is though the size of the file. – Bruno Lobo Mar 25 '17 at 22:06
  • As silly as it sounds, I accidentally downloaded a *tar.gz* file and tried to install it using dpkg -i instead of the *.deb* one. Caution, beginners!!! – Fusseldieb Aug 03 '22 at 14:15

1 Answers1

14

This error happens when your deb file is broken. Check if you have downloaded properly (use md5 or sha checksum).

I just had this error when I was trying to install a deb file when its download wasn't finished yet.

$ sudo dpkg -i rocketchat_2.9.0_amd64.deb 
dpkg-deb: error: 'rocketchat_2.9.0_amd64.deb' is not a debian format archive
dpkg: error processing archive rocketchat_2.9.0_amd64.deb (--install):
 subprocess dpkg-deb --control returned error exit status 2
Errors were encountered while processing:
 rocketchat_2.9.0_amd64.deb
sajjadG
  • 627