facebook / watchman

Watches files and records, or triggers actions, when they change.
https://facebook.github.io/watchman/
MIT License
12.44k stars 990 forks source link

Ubuntu Linux: unable to install 2023.03.13.00 following documentation #1116

Open edouard-lopez opened 1 year ago

edouard-lopez commented 1 year ago

related: https://stackoverflow.com/q/74398025/802365

Actual

Install fail as described in doc

❯ sudo dpkg --install ~/Downloads/watchman_ubuntu22.04_v2023.03.13.00.deb
Selecting previously unselected package watchman.
(Reading database ... 455683 files and directories currently installed.)
Preparing to unpack .../watchman_ubuntu22.04_v2023.03.13.00.deb ...
Unpacking watchman (20230222.123454.0) ...
dpkg: dependency problems prevent configuration of watchman:
 watchman depends on libgoogle-glog0v5; however:
  Package libgoogle-glog0v5 is not installed.
 watchman depends on libboost-context1.74.0; however:
  Package libboost-context1.74.0 is not installed.
 watchman depends on libevent-2.1-7; however:
  Package libevent-2.1-7 is not installed.

dpkg: error processing package watchman (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 watchman

"Fix" doesn't work

Apt proposed "resolution" is to remove watchman

❯ sudo apt-get -f install
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... Done
The following packages will be REMOVED
  watchman
0 to upgrade, 0 to newly install, 1 to remove and 0 not to upgrade.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] n
Abort.
rBurgett commented 1 year ago

Experiencing the same issue myself.

stephenh commented 10 months ago

Seems like this is still happening on v2023.09.04.00.deb and Ubuntu 23.04.

stephenh commented 10 months ago

Hey @chadaustin , apologies for the tag, but I noticed ~3 weeks ago you removed the Ubuntu 18 build from the release workflow (which makes sense!); do you happen to have plans to add the Ubuntu 23.04 build / pre-built binaries as well?

I believe this issue is probably? the same thing, where @edouard-lopez was trying to install the 22.04 pre-built binaries into his 22.10 system, and the "apt install --fix-broken" step does not magically pull in the necessary deps.

I haven't technically tried installing from source, which is what I used to do for watchman ~a few years ago, but I'm worried it won't just work, i.e. the newer distros/dependencies will have "greek to me" :-) issues like https://github.com/facebook/watchman/pull/1141.

But, we'll see, I should give it a shot...

Thank you!

chadaustin commented 10 months ago

you removed the Ubuntu 18 build from the release workflow (which makes sense!)

Correct. One of our upstream library dependencies also dropped support for Ubuntu 18 so the build was broken for a while.

So far we've only had time to support the Ubuntu LTS releases.

I'd recommend trying to install from source! Barring that, I'd accept a PR to add one or two recent non-LTS Ubuntus.

chadaustin commented 10 months ago

Looking at this original issue: it's too bad that apt-get install -f suggests removing watchman instead of installing the other libraries. I'm not the team that maintains Watchman anymore and don't know when I'll get a chance to look, but have you tried manually installing the packages it says are missing? If that works, maybe those should be the new instructions.

la55u commented 9 months ago

Any chance someone can post an updated instructions for installing watchman on ubuntu? version v2023.10.09.00 still does not work on ubuntu:jammy in docker.

Step 32/38 : RUN dpkg -i /tmp/watchman_ubuntu22.04_${WATCHMAN_VERSION}.deb
 ---> Running in 7594bcb93ee0
Selecting previously unselected package watchman.
(Reading database ... 22231 files and directories currently installed.)
Preparing to unpack .../watchman_ubuntu22.04_v2023.10.09.00.deb ...
Unpacking watchman (20231008.002904.0) ...
dpkg: dependency problems prevent configuration of watchman:
 watchman depends on libgoogle-glog0v5; however:
  Package libgoogle-glog0v5 is not installed.
 watchman depends on libboost-context1.74.0; however:
  Package libboost-context1.74.0 is not installed.
 watchman depends on libdouble-conversion3; however:
  Package libdouble-conversion3 is not installed.
 watchman depends on libevent-2.1-7; however:
  Package libevent-2.1-7 is not installed.
 watchman depends on libsnappy1v5; however:
  Package libsnappy1v5 is not installed.

dpkg: error processing package watchman (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 watchman
The command '/bin/sh -c dpkg -i /tmp/watchman_ubuntu22.04_${WATCHMAN_VERSION}.deb' returned a non-zero code: 1

The build step exits before even getting to the apt-get -f install command. Thank you