You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To in-place upgrade my nut-client install to 2.8.2 and it went well. However, apt still sees my nut-client package as 2.8.0.
i am certain that if a newer package, say 2.8.1 were to get pushed to the Debian repos, apt would overwrite my manual deployment with what it thinks is a newer version.
whats the recommended course of action to reconcile the two?
Apt deals with packaging metadata, which is coincidentally related (or not) to actual installed binaries.
To "reconcile" you can either build your own until packaged version surpasses 2.8.2 (not sure if Debian ships significantly changed packages, other than small patching of whatever version of software like NUT a distro release was initially issued with), or use and adapt their recipes to build a 2.8.2 via debuild. Maybe you can tell apt to freeze your package version for NUT and so not auto-update it?..
for now, I just did apt-mark hold on nutnut-clientnut-monitor and nut-server thinking that will be enough. i also made a note in my server documentation to remove this at such a time that 2.8.3 is released.
if anyone else comes across this and has any better ideas, let me know, but closing for now!
I updated the wiki article with ideas from this discussion, thanks!
well, i should have brought this up with my reply earlier but under the "Replacing a systemd deployment" heading the following info might also be good additions:
i had to do some googling to figure out that i needed to use the --with-libsystemd build flag in addition to --enable-inplace-runtime to get proper logs to output when running, for example, systemctl status nut-client
before this, i was getting the message: upsnotify: failed to notify about state 2: no notification tech defined
for the --with-libsystemd flag to work, apt install libsystemd-dev was required.
I think having the dependency installed was the important part, and that's documented in config-prereqs. But it is worthy of a reminder in wiki too, thanks.
Activity
jimklimov commentedon Jul 27, 2024
Apt deals with packaging metadata, which is coincidentally related (or not) to actual installed binaries.
To "reconcile" you can either build your own until packaged version surpasses 2.8.2 (not sure if Debian ships significantly changed packages, other than small patching of whatever version of software like NUT a distro release was initially issued with), or use and adapt their recipes to build a 2.8.2 via
debuild. Maybe you can tellaptto freeze your package version for NUT and so not auto-update it?..kirsch33 commentedon Jul 27, 2024
@jimklimov thanks for the reply
for now, I just did
apt-mark holdonnutnut-clientnut-monitorandnut-serverthinking that will be enough. i also made a note in my server documentation to remove this at such a time that 2.8.3 is released.if anyone else comes across this and has any better ideas, let me know, but closing for now!
jimklimov commentedon Jul 28, 2024
I updated the wiki article with ideas from this discussion, thanks!
kirsch33 commentedon Jul 28, 2024
well, i should have brought this up with my reply earlier but under the "Replacing a systemd deployment" heading the following info might also be good additions:
i had to do some googling to figure out that i needed to use the
--with-libsystemdbuild flag in addition to--enable-inplace-runtimeto get proper logs to output when running, for example,systemctl status nut-clientbefore this, i was getting the message:
upsnotify: failed to notify about state 2: no notification tech definedfor the
--with-libsystemdflag to work,apt install libsystemd-devwas required.but all works great now!
jimklimov commentedon Jul 28, 2024
I think having the dependency installed was the important part, and that's documented in config-prereqs. But it is worthy of a reminder in wiki too, thanks.