Add update and upgrade commands to enable the installation of the first dependencies on ubuntu xenial. If those are not executed some packages can not be found.
Doc: do update before fetching packages in WSL build guide #12668
pull nvercamm wants to merge 1 commits into bitcoin:master from nvercamm:patch-1 changing 1 files +2 −0-
nvercamm commented at 2:16 PM on March 11, 2018: contributor
-
e29c6c8c61
Ubuntu xenial first dependencies
Add update and upgrade commands to enable the installation of the first dependencies on ubuntu xenial. If those are not executed some packages can not be found.
- fanquake added the label Docs on Mar 11, 2018
-
laanwj commented at 9:45 AM on March 13, 2018: member
Indeed the
apt-getcan fail on a system with an old package catalog, due to missing packages. Note that you don't strictly need theapt-get upgrade, just the update. But it's ok... -
randolf commented at 9:35 PM on March 13, 2018: contributor
The concern I have with running the upgrade/update is that it might have an effect on other packages not related to Bitcoin. Might it be better to instead add a note that "apt-get update" might help in the event that some dependencies are missing?
-
nvercamm commented at 7:02 AM on March 14, 2018: contributor
I ran into this problem when using the WSL and after doing a fresh install of Ubuntu from the Microsoft store. So I would think that everybody using this workflow will run into this problem.
I also ran into some other problems for which I haven't created a pull request yet: mainly missing packages and the installation of berkleydb 4.8. So maybe a seperate section for a freshly installed Ubuntu Xenial on WSL would be appropriate.
-
laanwj commented at 12:36 PM on March 14, 2018: member
The concern I have with running the upgrade/update is that it might have an effect on other packages not related to Bitcoin.
I understand the concern but also note that this is always the case. When you
apt-get installa package you get its most recent version, as well as the most recent of its dependencies, and the dependencies in turn, all the way up to base system libraries. -
laanwj commented at 2:02 PM on March 14, 2018: member
So maybe a seperate section for a freshly installed Ubuntu Xenial on WSL would be appropriate.
FWIW there's nothing specific to Xenial in this PR. Running
apt-get updatebefore installing packages makes as much sense for every Debian variant in existence. -
fanquake commented at 2:32 PM on March 14, 2018: member
utACK e29c6c8 The Windows build instructions seem fragile at the best of times, if running apt update/upgrade is going to cause more issues that's worrying.
- laanwj renamed this:
Doc: Ubuntu xenial first dependencies
Doc: do update before fetching packages in WSL build guide
on Mar 14, 2018 -
laanwj commented at 3:30 PM on March 14, 2018: member
I've changed the PR title to be clearer.
- laanwj merged this on Mar 14, 2018
- laanwj closed this on Mar 14, 2018
- laanwj referenced this in commit de2fcaa89a on Mar 14, 2018
- MarcoFalke locked this on Sep 8, 2021