Issue in upgrading to 0.0.7

Something didn’t work for me in the upgrade (Ubuntu 20.04.3 ):

$ pls apt --only-upgrade install flox
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
  flox
1 upgraded, 0 newly installed, 0 to remove and 145 not upgraded.
Need to get 122 MB of archives.
After this operation, 25.6 kB disk space will be freed.
Get:1 https://alpha.floxsdlc.com/downloads/debian-archive unstable/ flox 0.0.7-r76 [122 MB]
Fetched 122 MB in 5s (26.6 MB/s)
debconf: unable to initialize frontend: Dialog
debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)
debconf: falling back to frontend: Readline

(Reading database ... 198664 files and directories currently installed.)
Preparing to unpack .../flox_0.0.7-r76_amd64.deb ...
e7Progress: [  0%] [....................................................................................................................................] e8e7Progress: [ 20%] [##########################..........................................................................................................] e8Unpacking flox (0.0.7-r76) over (0.0.6-r58) ...
e7Progress: [ 40%] [####################################################................................................................................] e8Setting up flox (0.0.7-r76) ...
Installing new version of config file /etc/flox-version ...
e7Progress: [ 60%] [###############################################################################.....................................................] e8error: experimental Nix feature 'nix-command' is disabled; use '--extra-experimental-features nix-command' to override
Warning: Stopping nix-daemon.service, but it can still be activated by:
  nix-daemon.socket
e7Progress: [ 80%] [#########################################################################################################...........................] e8Processing triggers for man-db (2.9.1-1) ...

e7e8
$ flox --version
bash: /usr/bin/flox: No such file or directory
$ pls apt --only-upgrade install flox
Reading package lists... Done
Building dependency tree
Reading state information... Done
flox is already the newest version (0.0.7-r76).
0 upgraded, 0 newly installed, 0 to remove and 145 not upgraded.
$ ls -las /usr/bin/flox
4 lrwxrwxrwx 1 root root 67 Jan  1  1980 /usr/bin/flox -> /nix/store/qqjrzf5bbxg2nvaq5ivinj83wn7mqgg7-flox-0.0.7-r76/bin/flox
$ ls -las /nix/store/qqjrzf5bbxg2nvaq5ivinj83wn7mqgg7-flox-0.0.7-r76
ls: cannot access '/nix/store/qqjrzf5bbxg2nvaq5ivinj83wn7mqgg7-flox-0.0.7-r76': No such file or directory

The same if I redo the installation after having downloaded the new deb file:

$ pls dpkg -i tmp/flox.deb
(Reading database ... 198664 files and directories currently installed.)
Preparing to unpack tmp/flox.deb ...
Unpacking flox (0.0.7-r76) over (0.0.7-r76) ...
Setting up flox (0.0.7-r76) ...
error: experimental Nix feature 'nix-command' is disabled; use '--extra-experimental-features nix-command' to override
Warning: Stopping nix-daemon.service, but it can still be activated by:
  nix-daemon.socket
Processing triggers for man-db (2.9.1-1) ...
$ flox --version
bash: /usr/bin/flox: No such file or directory

Any clues?
Thanks

Thanks @gruggiero for the feedback - I think these may be the smoking guns:

e8Unpacking flox (0.0.7-r76) over (0.0.6-r58)
...
e8error: experimental Nix feature 'nix-command' is disabled; use '--extra-experimental-features nix-command' to override
...
ls: cannot access '/nix/store/qqjrzf5bbxg2nvaq5ivinj83wn7mqgg7-flox-0.0.7-r76': No such file or directory

I would need to see a detailed set of log messages to be sure what’s going on, but this is something that we definitely haven’t seen before. When I install to a more recent ubuntu host this is what I see:

$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 22.04.1 LTS
Release:	22.04
Codename:	jammy
$ sudo dpkg -i flox.deb
Selecting previously unselected package flox.
(Reading database ... 63911 files and directories currently installed.)
Preparing to unpack flox.deb ...
Unpacking flox (0.0.7-r83) ...
Setting up flox (0.0.7-r83) ...
Created symlink /etc/systemd/system/sockets.target.wants/nix-daemon.socket → /lib/systemd/system/nix-daemon.socket.
Created symlink /etc/systemd/system/multi-user.target.wants/nix-daemon.service → /lib/systemd/system/nix-daemon.service.
Processing triggers for man-db (2.10.2-1) ...
$ flox --version
Version: 0.0.7-r83
$ which flox
/usr/bin/flox
$ 

Would it be possible to try the installation once more but with the following command?

sudo dpkg --debug=1 -i flox.deb

One last thing (important) - version 0.0.7-r76 has showstopper bugs. Please download the latest (0.0.7-r83) before trying again.

Many thanks for the feedback!

Thank you for the reply, but… no luck:

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:  Ubuntu 20.04.3 LTS
Release:  20.04
Codename: focal
12:53:33-gruggiero@soy300: ~/d
$ sudo dpkg --debug=1 -i flox.deb
D000001: ensure_diversions: new, (re)loading
D000001: ensure_statoverrides: new, (re)loading
(Reading database ... 229741 files and directories currently installed.)
Preparing to unpack flox.deb ...
D000001: process_archive oldversionstatus=installed
D000001: ensure_diversions: same, skipping
D000001: ensure_diversions: same, skipping
Unpacking flox (0.0.7-r83) over (0.0.7-r76) ...
D000001: ensure_diversions: same, skipping
D000001: process_archive updating info directory
D000001: generating infodb hashfile
D000001: process queue pkg flox:amd64 queue.len 0 progress 1, try 1
Setting up flox (0.0.7-r83) ...
D000001: deferred_configure updating conffiles
Installing new version of config file /etc/flox-version ...
error: experimental Nix feature 'nix-command' is disabled; use '--extra-experimental-features nix-command' to override
Warning: Stopping nix-daemon.service, but it can still be activated by:
  nix-daemon.socket
D000001: ensure_diversions: same, skipping
Processing triggers for man-db (2.9.1-1) ...
D000001: ensure_diversions: same, skipping
12:55:16-gruggiero@soy300: ~/d
$ flox --version
bash: /usr/bin/flox: No such file or directory

To help debug the issue, I can add that I had Nix installed before Flox and I uninstalled it following the instruction found on the Nix site.
I don’t know if it’s relevant, given that 0.0.6 seemed to work.

Update: I’ve been able to resolve the issue by removing the package and reinstalling it.

Thank you

Giovanni

1 Like