Error: memtest86 has been renamed to/replaced by memtest86plus

nixos-rebuild --upgrade switch
unpacking channels...
building Nix...
building the system configuration...
error: 'memtest86' has been renamed to/replaced by 'memtest86plus'
(use '--show-trace' to show detailed location information)

Getting this when trying to upgrade from NixOS 20.09 to 22.05.

I don’t care if memtest has been renamed. How can I skip/ignore this error (that should be a warning)?

Noticed, that memtest86 was mentioned in a packages.nix. After removing it, the upgrade process proceeded.

The error message should be more clear about the package declaratively being requested and perhaps suggesting for it to be automatically renamed or removed from the list.

Or, nixos-rebuild could handle this situation completely automatically, by automatically renaming the package and just printing this action as a warning message. Not sure why this is an error blocking an entire distribution upgrade.

1 Like