5

Whenever I try to install some .deb packages which I downloaded before (e.g. Atom, BP-tools etc.) I receive this error in Ubuntu 17.10:

./bp-tools_17.12_amd64_Xenial_free.deb 
./bp-tools_17.12_amd64_Xenial_free.deb: line 1: syntax error near
unexpected token `newline' ./bp-tools_17.12_amd64_Xenial_free.deb:
line 1: `!<arch>'

can anyone help, please?

pomsky
  • 70,557

2 Answers2

15

Try installing the software with

dpkg --install <Package_Name>

Like in your case just cd into the directory and then type the above command like

dpkg --install libpng12-0_1.2.50-2+deb8u3_amd64.deb
Kulfy
  • 18,154
Sai
  • 151
3

to install .deb packages use full path. say you have a .deb package in /home/yourname/Downloads/packagename.deb then use:

sudo apt-get install /home/yourname/Downloads/packagename.deb
mehrdadep
  • 381