Skip to content

PVE post install interrupts when choosing no to disable subscription nag on a system with nag enabledΒ #11218

@maiux

Description

@maiux

βœ… Have you read and understood the above guidelines?

yes

πŸ”Ž Did you run the script with verbose mode enabled?

Yes, verbose mode was enabled and the output is included below

πŸ“œ What is the name of the script you are using?

PVE Post Install

πŸ“‚ What was the exact command used to execute the script?

bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/tools/pve/post-pve-install.sh)"

βš™οΈ What settings are you using?

  • Default Settings
  • Advanced Settings

πŸ–₯️ Which Linux distribution are you using?

Debian 13

πŸ“ˆ Which Proxmox version are you on?

9.1.4

πŸ“ Provide a clear and concise description of the issue.

Better check for /etc/apt/apt.conf.d/no-nag-script existence before trying to delete it, otherwise post install script will interrupt. I modified original script like this:

...
  no)
    whiptail --backtitle "Proxmox VE Helper Scripts" --msgbox --title "Support Subscriptions" "Supporting the software's development team is essential. Check their official website's Support Subscriptions for pricing. Without their dedicated work, we wouldn't have this exceptional software." 10 58
    msg_error "Selected no to Disabling subscription nag"
    if [ -f /etc/apt/apt.conf.d/no-nag-script ]; then
      rm /etc/apt/apt.conf.d/no-nag-script 2>/dev/null
    fi    
    ;;
  esac
  apt --reinstall install proxmox-widget-toolkit &>/dev/null || msg_error "Widget toolkit reinstall failed"
...

Original script interrupts when both conditions occurring:

  • selected 'no' to disable subscription nag
  • no 'DPkg::Post-Invoke' script exists on the system

πŸ”„ Steps to reproduce the issue.

  1. run PVE Post Install script on a fresh system
  2. select 'no' at the "Disable subscription nag" question

❌ Paste the full error output (if available).

script fails silently

πŸ–ΌοΈ Additional context (optional).

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions