openbazaar-desktop
openbazaar-desktop copied to clipboard
Cannot install due to unmet dependency libgconf2-4
The .deb will not install using dpkg -i ob-filename.deb followed by apt-get install -f. Instead, the output below is displayed after using apt-get. This seems to be a change in package naming yet while the package still exists under a new name, OB isn't recognizing that it can use the new package name instead.
This is happening on Debian 10. There is a related issue (#1205) with a solution that does not work with Debian 10.
Output of dpkg -i openbazaar2_2.2.25_amd64.deb; apt-get install -f
dpkg -i openbazaar2_2.2.5_amd64.deb
Selecting previously unselected package openbazaar2.
(Reading database ... 144866 files and directories currently installed.)
Preparing to unpack openbazaar2_2.2.5_amd64.deb ...
Unpacking openbazaar2 (2.2.5-1) ...
dpkg: dependency problems prevent configuration of openbazaar2:
openbazaar2 depends on libgconf2-4; however:
Package libgconf2-4 is not installed.
dpkg: error processing package openbazaar2 (--install):
dependency problems - leaving unconfigured
Processing triggers for mime-support (3.61) ...
Errors were encountered while processing:
openbazaar2
Alright, found a solution. Although, I'm hoping future versions will be able to decipher this mess if possible. Its the same package with a different name, depending on distro and/or version of distro. The solution below, required the .deb to be extracted and modified.
Note: you'll probably want to create a new directory to use temporarily, since this will produce multiple files in one directory.
ar x openbazaar2_2.2.5_amd64.deb
tar xzf control.tar.gz
sed -i s/libgconf2-4/libgconf-2-4/ control
tar --ignore-failed-read -cvzf control.tar.gz {post,pre}{inst,rm} md5sums control
ar rcs openbazaar2_2.2.5_amd64-FIXED.deb debian-binary control.tar.gz data.tar.gz
sudo dpkg -i openbazaar2_2.2.5_amd64-FIXED.deb
I think we will probably defer this issue for the time being, considering Debian 10 is not slated for release until next Fall.
wouldn't it make sense to replace libgconf2-4 dependency with libgconf-2-4 as libgconf2-4 is a 'dummy package'?
reporting same issue here, in Ubuntu 18.10 and 19.04
@hoffmabc is this something we should look at again?
I thought this was already addressed.
It's not addressed. Happened to me today on fresh VM. Ubuntu 19.04, openbazaar2_2.3.2_amd64.deb.
People shouldn't need to do dirty fixes to install a package. They should be able to just run:
sudo apt install libgtk2.0-0 libgconf-2-4
sudo dpkg -i openbazaar2_2.3.2_amd64.deb
I had the same problem with debian testing. The solution in the comments above worked with some modification.
The following is the code that I used to get this working on my install. Thanks for the help everyone and I hope this is helpful to someone if they had a problem similar to mine. :)
ar x openbazaar2_2.3.2_amd64.deb tar xzf control.tar.gz sed -i s/libgconf2-4/libgconf-2-4/ control tar --ignore-failed-read -cvzf control.tar.gz control ar rcs openbazaar2_2.3.2_amd64-FIXED.deb debian-binary control.tar.gz data.tar.gz sudo dpkg -i openbazaar2_2.3.2_amd64-FIXED.deb
Same problem on a fresh Ubuntu 19.04 install. Above workaround worked with a few minor changes.
I upgraded from Xubuntu 18.10 to 19.04, and in the process of upgrading and removing old packages, OB was actually uninstalled.
As indicated above, libgconf2-4 is now libgconf-2-4:
user@box:~/.../ob$ apt-cache policy libconf-2-4
N: Unable to locate package libconf-2-4
user@box:~/.../ob$ apt-cache policy libgconf-2-4
libgconf-2-4:
Installed: 3.2.6-5ubuntu1
Candidate: 3.2.6-5ubuntu1
Version table:
*** 3.2.6-5ubuntu1 500
500 http://archive.ubuntu.com/ubuntu disco/universe amd64 Packages
100 /var/lib/dpkg/status
As a result, I had been facing the same unmet dependency error as others above.
The following worked for me. (Thanks @webunraveling & @wh1t3fang.)
ar x openbazaar2_2.3.2_amd64.deb
tar xzf control.tar.gz
sed -i s/libgconf2-4/libgconf-2-4/ control
tar --ignore-failed-read -cvzf control.tar.gz control
ar rcs openbazaar2_2.3.2_amd64-FIXED.deb debian-binary control.tar.gz data.tar.xz
sudo dpkg -i openbazaar2_2.3.2_amd64-FIXED.deb