2

I am beginner with ubuntu. I've got stuck with an error. I can't install application. Any ideas what may be wrong?

usic@hosttt:~$ sudo apt-get install /myprogram/program.deb
Reading package lists... Error!
E: read, still have 59 to read but none left
E: Error reading archive member header
E: Could not read meta data from /myprogram/program.deb
E: The package lists or status file could not be parsed or opened.
Serp
  • 23

2 Answers2

2

When installing local DEB packages, you should use dpkg instead of apt, since apt is designed for installing packages from the remote repositories. To install your package with dpkg, use the following command:

sudo dpkg -i /path/to/my/package.deb

Replace /path/to/my/package.deb with the actual path of your own package.

In some cases, this command may fail with missing dependency errors. If this is the case, issue the following command:

sudo apt --fix-broken install

This will install the dependencies. After that, re-run the first dpkg command to install your package.

Alternatively, the program gdebi can be used instead of dpkg, since it has better resolution of dependencies without needing to apt --fix-broken install. To install gdebi, run this command:

sudo apt install gdebi-core

Now you can install your program directly using:

sudo gdebi /path/to/my/package.deb
Daniel M.
  • 2,046
1

If the myprogram directory is in you Home, then the path is wrong.

Run

sudo apt install ~/myprogram/program.deb
Pilot6
  • 92,041