-1

I used the following command after finding it on a thread:

$ sudo dpkg -i --force-overwrite atom-amd64.deb
 (Reading database ... 256705 files and directories currently installed.)
Preparing to unpack atom-amd64.deb ...
Unpacking atom (1.19.1) over (1.19.1) ...
dpkg: dependency problems prevent configuration of atom:
 atom depends on git; however:
  Package git is not installed.
dpkg: error processing package atom (--install):
 dependency problems - leaving unconfigured
Processing triggers for bamfdaemon (0.5.3+17.04.20170406-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for gnome-menus (3.13.3-6ubuntu5) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu2) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Errors were encountered while processing:
 atom

I am able to open and use atom. No problems yet. But should I do anything about the error message?

muru
  • 207,228

1 Answers1

0

Installing packages with options like --force is not a good idea because even if there is a problem you force the package manager to install it anyway . As you may know the package manager (dpkg) has a database and a messed up installation can cause inconsistencies in the database.

As an example you install package xxx10.deb therefore package manager won't let you install xxx9.deb but you can install it with --force option . Now when you are going to remove xxx package manager finds an ambiguity.

I prefer to use apt. You can usually resolve dependency issues with the command

 sudo apt-get -f install
Zanna
  • 72,312
Ali Ghasempour
  • 449
  • 3
  • 7