Score:0

E: The package mongodb-org-server needs to be reinstalled, but I can't find an archive for it

de flag

I am trying to install mongodb compass. When I am trying to install I am getting

Preparing to unpack mongodb-compass_1.39.0_amd64.deb ...
Unpacking mongodb-compass (1.39.0) over (1.39.0) ...
dpkg: dependency problems prevent configuration of mongodb-compass:
 mongodb-compass depends on libgconf-2-4 | libgconf2-4; however:
  Package libgconf-2-4 is not installed.
  Package libgconf2-4 is not installed.
 mongodb-compass depends on libgconf-2-4; however:
  Package libgconf-2-4 is not installed.

dpkg: error processing package mongodb-compass (--install):
 dependency problems - leaving unconfigured
Processing triggers for mailcap (3.70+nmu1ubuntu1) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu3) ...
Processing triggers for desktop-file-utils (0.26-1ubuntu3) ...
Errors were encountered while processing:
 mongodb-compass

After that I tried to install libgconf-2-4 using command

sudo apt-get install libgconf-2-4

But getting error

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: The package mongodb-org-server needs to be reinstalled, but I can't find an archive for it.

I tried using below command but none is working sudo rm /var/lib/apt/lists/* -vf sudo apt-get update

I am using Ubuntu 22.04.2 LTS with i5 processor 16GB ram.

KESHAV KUMAR avatar
de flag
After a lot of research I tried command sudo dpkg --remove --force-remove-reinstreq mongodb-org-server and it worked. Thanks to post https://askubuntu.com/questions/1075622/e-the-package-needs-to-be-reinstalled-but-i-cant-find-an-archive-for-it-lib
KESHAV KUMAR avatar
de flag
@Rinzwind Yes that post helped. Thanks
cn flag
that was an autogenerated comment when voting to close ;)
karel avatar
sa flag
Does this answer your question? [E: The package needs to be reinstalled, but I can't find an archive for it \[ libpolkit-gobject-1-0\]](https://askubuntu.com/questions/1075622/e-the-package-needs-to-be-reinstalled-but-i-cant-find-an-archive-for-it-lib)
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.