Skip to content

Extra packages not restored after image upgrade #1606

Description

@filippocarletti

Extra package may not be reinstalled after upgrade.
See #1556 for the implementation.

Steps to reproduce

  • opkg update && opkg install nmap
  • tail -1 /etc/backup/installed_packages.txt
  • sysupgrade

Expected behavior

nmap working

Actual behavior

-bash: nmap: command not found

See also

https://docs.nethsecurity.org/en/latest/updates.html#restore-extra-packages-section

Apr 11 10:30:08 firewall.fbfitaly.com ns-restore-extra-packages[8296]: Downloading https://secret/repository/enterprise/nethsecurity/8.7.2/targets/x86/64/packages/Packages.gz
Apr 11 10:30:11 firewall.fbfitaly.com ns-restore-extra-packages[8296]: Updated list of available packages in /var/opkg-lists/nethsecurity_core
Apr 11 10:30:11 firewall.fbfitaly.com ns-restore-extra-packages[8296]: Downloading https://secret/repository/enterprise/nethsecurity/8.7.2/targets/x86/64/packages/Packages.sig
Apr 11 10:30:12 firewall.fbfitaly.com ns-restore-extra-packages[8296]: Signature check passed.
Apr 11 10:30:12 firewall.fbfitaly.com ns-restore-extra-packages[8296]: Downloading https://secret/repository/enterprise/nethsecurity/8.7.2/packages/x86_64/base/Packages.gz
Apr 11 10:30:14 firewall.fbfitaly.com ns-restore-extra-packages[8296]: Updated list of available packages in /var/opkg-lists/nethsecurity_base
Apr 11 10:30:14 firewall.fbfitaly.com ns-restore-extra-packages[8296]: Downloading https://secret/repository/enterprise/nethsecurity/8.7.2/packages/x86_64/base/Packages.sig
Apr 11 10:30:16 firewall.fbfitaly.com ns-restore-extra-packages[8296]: Signature check passed.
Apr 11 10:30:16 firewall.fbfitaly.com ns-restore-extra-packages[8296]: Downloading https://secret/repository/enterprise/nethsecurity/8.7.2/packages/x86_64/luci/Packages.gz
Apr 11 10:30:17 firewall.fbfitaly.com ns-restore-extra-packages[8296]: Updated list of available packages in /var/opkg-lists/nethsecurity_luci
Apr 11 10:30:17 firewall.fbfitaly.com ns-restore-extra-packages[8296]: Downloading https://secret/repository/enterprise/nethsecurity/8.7.2/packages/x86_64/luci/Packages.sig
Apr 11 10:30:19 firewall.fbfitaly.com ns-restore-extra-packages[8296]: Signature check passed.
Apr 11 10:30:19 firewall.fbfitaly.com ns-restore-extra-packages[8296]: Downloading https://secret/repository/enterprise/nethsecurity/8.7.2/packages/x86_64/nethsecurity/Packages.gz
Apr 11 10:30:20 firewall.fbfitaly.com ns-restore-extra-packages[8296]: Updated list of available packages in /var/opkg-lists/nethsecurity_nethsecurity
Apr 11 10:30:20 firewall.fbfitaly.com ns-restore-extra-packages[8296]: Downloading https://secret/repository/enterprise/nethsecurity/8.7.2/packages/x86_64/nethsecurity/Packages.sig
Apr 11 10:30:22 firewall.fbfitaly.com ns-restore-extra-packages[8296]: Signature check passed.
Apr 11 10:30:22 firewall.fbfitaly.com ns-restore-extra-packages[8296]: Downloading https://secret/repository/enterprise/nethsecurity/8.7.2/packages/x86_64/packages/Packages.gz
Apr 11 10:30:23 firewall.fbfitaly.com ns-restore-extra-packages[8296]: Updated list of available packages in /var/opkg-lists/nethsecurity_packages
Apr 11 10:30:23 firewall.fbfitaly.com ns-restore-extra-packages[8296]: Downloading https://secret/repository/enterprise/nethsecurity/8.7.2/packages/x86_64/packages/Packages.sig
Apr 11 10:30:25 firewall.fbfitaly.com ns-restore-extra-packages[8296]: Signature check passed.
Apr 11 10:30:25 firewall.fbfitaly.com ns-restore-extra-packages[8296]: Downloading https://secret/repository/enterprise/nethsecurity/8.7.2/packages/x86_64/routing/Packages.gz
Apr 11 10:30:26 firewall.fbfitaly.com ns-restore-extra-packages[8296]: Updated list of available packages in /var/opkg-lists/nethsecurity_routing
Apr 11 10:30:26 firewall.fbfitaly.com ns-restore-extra-packages[8296]: Downloading https://secret/repository/enterprise/nethsecurity/8.7.2/packages/x86_64/routing/Packages.sig
Apr 11 10:30:28 firewall.fbfitaly.com ns-restore-extra-packages[8296]: Signature check passed.
Apr 11 10:30:33 firewall.fbfitaly.com ns-restore-extra-packages[8296]: Installing nmap (7.95-r1) to root...
Apr 11 10:30:33 firewall.fbfitaly.com ns-restore-extra-packages[8296]: Downloading https://secret/repository/enterprise/nethsecurity/8.7.2/packages/x86_64/packages/nmap_7.95-r1_x86_64.ipk
Apr 11 10:30:39 firewall.fbfitaly.com ns-restore-extra-packages[8296]: Collected errors:
Apr 11 10:30:39 firewall.fbfitaly.com ns-restore-extra-packages[8296]:  * opkg_download: Failed to download https://secret/repository/enterprise/nethsecurity/8.7.2/packages/x86_64/packages/nmap_7.95-r1_x86_64.ipk, wget returned 4.
Apr 11 10:30:39 firewall.fbfitaly.com ns-restore-extra-packages[8296]:  * opkg_download: Check your network settings and connectivity.
Apr 11 10:30:39 firewall.fbfitaly.com ns-restore-extra-packages[8296]: 
Apr 11 10:30:39 firewall.fbfitaly.com ns-restore-extra-packages[8296]:  * opkg_install_pkg: Failed to download nmap. Perhaps you need to run 'opkg update'?
Apr 11 10:30:39 firewall.fbfitaly.com ns-restore-extra-packages[8296]:  * opkg_install_cmd: Cannot install package nmap.
Apr 11 10:30:39 firewall.fbfitaly.com ns-restore-extra-packages[8296]: Restored package: nmap

Metadata

Metadata

Assignees

No one assigned

    Labels

    verifiedAll test cases were verified successfully

    Type

    Fields

    No fields configured for Bug.

    Projects

    Status
    Verified

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions