I am following the step-by-step instructions on how to install ThinkPad Fan Control here but I could not get past this step (seen below):

Open a terminal and run this command:


dpkg-deb -D --build tpfan admin_0.96-ubuntu1_all

instead I get this message when I enter it in the terminal:

dpkg-deb: error: failed to open package info file `tpfan/DEBIAN/control' for reading: No such file or directory

The .deb file is in my Downloads folder so I tried cd ./Downloads dpkg-deb -D --build tpfan admin_0.96-ubuntu1_all but I get juno@Oogushi:~/Downloads$.

How can I run the command properly? I'm not familiar with the terminal and commands so I don't know how to do this properly.

I am using ThinkPad R61i 12.04 64-bit.


cd ./Downloads and dpkg-deb -D --build tpfan admin_0.96-ubuntu1_all are two separate commands. You must run them separately.

So, after cding to the Downloads folder, just run this command as before:

dpkg-deb -D --build tpfan admin_0.96-ubuntu1_all

It appears that the only problem was that you were in the wrong place when you ran it. Or, more accurately, that you specified a relative path (see this article), which was wrong relative to the current working directory. By changing the current working directory, the relative path tpfan should be correct, assuming tpfan exists in your Downloads folder.

Edit: Whatever directory contains the tpfan directory, that's where you should be (i.e., where you should cd to) when you run your dpkg-deb command.

  • I did the two commands separately, however I still get juno@Oogushi:~/Downloads$ dpkg-deb -D --build tpfan admin_0.96-ubuntu1_all dpkg-deb: error: failed to open package info file tpfan/DEBIAN/control' for reading: No such file or directory` – onvas Aug 21 '12 at 7:37
  • @onvas Have you verified that the tpfan directory exists inside Downloads? – Eliah Kagan Aug 21 '12 at 7:38
  • I copied the files to another folder I named tpfan and repeated the command: juno@Oogushi:~$ cd ./Downloads juno@Oogushi:~/Downloads$ dpkg-deb -D --build tpfan admin_0.96-ubuntu1_all dpkg-deb: warning: 'tpfan/DEBIAN/control' contains user-defined field 'Python-Version' dpkg-deb: warning: ignoring 1 warning about the control file(s) dpkg-deb: building package tpfan-admin' in admin_0.96-ubuntu1_all'. juno@Oogushi:~/Downloads$ – onvas Aug 21 '12 at 7:43
  • @onvas From those messages, it looks like the new .deb file was successfully built. Do you have it? (It should be in Downloads as well.) – Eliah Kagan Aug 21 '12 at 7:45
  • Ah, I'm sorry the new .deb file just appeared now. Thank you very much for your help. – onvas Aug 21 '12 at 7:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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