question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Missing dependency on brave-keyring on the deb package of v0.66.99

See original GitHub issue

Description

The deb version of v0.66.99 can not be installed due to a missing dependency on brave keyring. See “actual result” below for terminal output.

Steps to Reproduce

  1. Download the deb version of 0.66.99 from here https://github.com/brave/brave-browser/releases/download/v0.66.99/brave-browser_0.66.99_amd64.deb
  2. Instal it with (sudo) dpkg -i brave-browser_0.66.99_amd64.deb.
  3. The installation fails because it can not find brave-keyring, which is a direct dependency.

Actual result:

The installation fails, because of a missing dependency

$ sudo dpkg -i Downloads/brave-browser_0.66.99_amd64.deb 
(Reading database ... 116920 files and directories currently installed.)
Preparing to unpack .../brave-browser_0.66.99_amd64.deb ...
Unpacking brave-browser (0.66.99) over (0.65.121) ...
dpkg: dependency problems prevent configuration of brave-browser:
 brave-browser depends on brave-keyring; however:
  Package brave-keyring is not installed.

dpkg: error processing package brave-browser (--install):
 dependency problems - leaving unconfigured
Processing triggers for mime-support (3.62) ...
Processing triggers for desktop-file-utils (0.23-4) ...
Processing triggers for man-db (2.8.5-2) ...
Errors were encountered while processing:
 brave-browser

Expected result:

The installation should complete successfully.

Reproduces how often:

Everytime.

Brave version (brave://version info)

0.66.99 The requested info from brave://version is not available because the browser can not be installed.

Version/Channel Information:

  • Can you reproduce this issue with the current release? Yes, if you are on a debian based distro
  • Can you reproduce this issue with the beta channel? No,
  • Can you reproduce this issue with the dev channel? No.
  • Can you reproduce this issue with the nightly channel? No.

Other Additional Information:

  • Does the issue resolve itself when disabling Brave Shields? No
  • Does the issue resolve itself when disabling Brave Rewards? No
  • Is the issue reproducible on the latest version of Chrome? No

Miscellaneous Information:

Debian testing x64 and the installation/upgrade is done from the deb file provided from github (because there is no repo for debian). The brave-keyring is a mandatory (“hard”) dependency as seen by apt-cache

$ apt-cache depends brave-browser
...
  Depends: xdg-utils
  Depends: <brave-keyring>
  Recommends: libu2f-udev

So either provide a deb package for brave-keyring or make it an optional dependency.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:17 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
fmariercommented, Jul 3, 2019

While you’re right that this is not very user-friendly, that’s the expected behavior with Debian packages. dpkg is a low-level tool which doesn’t automatically resolve dependencies. The tool which does is apt.

In general, it’s not possible to install packages directly with dpkg. The only time that works is when the packages being installed are leaf packages (i.e. no dependencies).

That said, working around this limitation of dpkg is easy. Simply run apt install -f afterwards. In other words, assuming you have the repository configured, the full list of steps would look like this:

wget https://github.com/brave/brave-browser/releases/download/v0.66.99/brave-browser_0.66.99_amd64.deb
dpkg -i brave-browser_0.66.99_amd64.deb
apt install -f
1reaction
fmariercommented, Jul 24, 2019

No, they’re different. The issue in this one is the missing dependency on the brave-keyring package whereas the issue in #5343 is the missing dependency on apt-transport-https.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Packaging deb: how to handle potentially missing dependencies
PRO: The needed dependencies are present in my package as stand-alone binaries, so the Depends section won't be used, and the missing repository ......
Read more >
How to list/download the recursive dependencies of a debian ...
And doesn't follow virtual packages. So I came up with following command suite. Recursively list dependencies. $ apt-cache depends --recurse --no-recommends -- ...
Read more >
Checking deb dependencies against the current system
This will unpack the package and then complain about any missing dependencies on stderr. It's likely to return a nonzero status even if...
Read more >
Building debian package - How do dependencies work?
When installing the .deb package, I see the errors regarding missing dependencies which is great, but it still dumps the directory and contents ......
Read more >
Install Deb Files With Dependencies in Ubuntu Command Line
It may not work if you are running an Ubuntu server and there is no GUI. If you download the deb file and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found