PMG no-nag-script Malformed Tag #1582

Closed
opened 2026-02-05 01:40:05 +03:00 by OVERLORD · 5 comments
Owner

Originally created by @Gunni on GitHub (Sep 5, 2025).

Have you read and understood the above guidelines?

yes

📜 What is the name of the script you are using?

Proxmox Mail Gateway 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-pmg-install.sh)"

⚙️ What settings are you using?

  • Default Settings
  • Advanced Settings

🖥️ Which Linux distribution are you using?

No response

📈 Which Proxmox version are you on?

8.2-1

📝 Provide a clear and concise description of the issue.

# apt update
E: Syntax error /etc/apt/apt.conf.d/no-nag-script:3: Malformed tag

🔄 Steps to reproduce the issue.

Run script, say yes to no-nag-script, observe apt is now broken.

Attempt use of apt commands.

Paste the full error output (if available).

 ✓ Corrected Debian Sources
 ✓ Kept 'pmg-enterprise' repository disabled
 ✓ Kept 'pmg-no-subscription' repository
 ✓ 'pmgtest' repository already disabled (skipped)
 ✓ Disabled subscription nag (clear browser cache!)
 ✗ Widget toolkit reinstall failed
 ✗ Selected no to updating Proxmox Mail Gateway
 ✗ Selected no to reboot (Reboot recommended)
 ✓ Completed Post Install Routines

🖼️ Additional context (optional).

root@example:/etc/apt/apt.conf.d# cat no-nag-script
DPkg::Post-Invoke {
  "if [ -s /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js ] && ! grep -q -F 'NoMoreNagging' /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js; then
     sed -i '/data\.status/{s/\\!//;s/active/NoMoreNagging/}' /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js;
   fi";
  "if [ -s /usr/share/javascript/pmg-gui/js/pmgmanagerlib-mobile.js ] && ! grep -q -F 'NoMoreNagging' /usr/share/javascript/pmg-gui/js/pmgmanagerlib-mobile.js; then
     sed -i '/data\.status/{s/\\!//;s/active/NoMoreNagging/}' /usr/share/javascript/pmg-gui/js/pmgmanagerlib-mobile.js;
   fi";
};
Originally created by @Gunni on GitHub (Sep 5, 2025). ### ✅ Have you read and understood the above guidelines? yes ### 📜 What is the name of the script you are using? Proxmox Mail Gateway 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-pmg-install.sh)" ### ⚙️ What settings are you using? - [x] Default Settings - [ ] Advanced Settings ### 🖥️ Which Linux distribution are you using? _No response_ ### 📈 Which Proxmox version are you on? 8.2-1 ### 📝 Provide a clear and concise description of the issue. ``` # apt update E: Syntax error /etc/apt/apt.conf.d/no-nag-script:3: Malformed tag ``` ### 🔄 Steps to reproduce the issue. Run script, say yes to no-nag-script, observe apt is now broken. Attempt use of apt commands. ### ❌ Paste the full error output (if available). ``` ✓ Corrected Debian Sources ✓ Kept 'pmg-enterprise' repository disabled ✓ Kept 'pmg-no-subscription' repository ✓ 'pmgtest' repository already disabled (skipped) ✓ Disabled subscription nag (clear browser cache!) ✗ Widget toolkit reinstall failed ✗ Selected no to updating Proxmox Mail Gateway ✗ Selected no to reboot (Reboot recommended) ✓ Completed Post Install Routines ``` ### 🖼️ Additional context (optional). ``` root@example:/etc/apt/apt.conf.d# cat no-nag-script DPkg::Post-Invoke { "if [ -s /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js ] && ! grep -q -F 'NoMoreNagging' /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js; then sed -i '/data\.status/{s/\\!//;s/active/NoMoreNagging/}' /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js; fi"; "if [ -s /usr/share/javascript/pmg-gui/js/pmgmanagerlib-mobile.js ] && ! grep -q -F 'NoMoreNagging' /usr/share/javascript/pmg-gui/js/pmgmanagerlib-mobile.js; then sed -i '/data\.status/{s/\\!//;s/active/NoMoreNagging/}' /usr/share/javascript/pmg-gui/js/pmgmanagerlib-mobile.js; fi"; }; ```
OVERLORD added the bug label 2026-02-05 01:40:05 +03:00
Author
Owner

@cipher2k commented on GitHub (Sep 8, 2025):

same issue here. had to remove the no-nag-script file to do a manual apt update & upgrade

@cipher2k commented on GitHub (Sep 8, 2025): same issue here. had to remove the no-nag-script file to do a manual apt update & upgrade
Author
Owner

@J-C-P commented on GitHub (Sep 10, 2025):

Same issue here.
I had a look at forums and other ressources but no luck to find a way around this.
As my dev skills are close to nothing, I rely on more intelligent people :-)

Thanks for your work !

@J-C-P commented on GitHub (Sep 10, 2025): Same issue here. I had a look at forums and other ressources but no luck to find a way around this. As my dev skills are close to nothing, I rely on more intelligent people :-) Thanks for your work !
Author
Owner

@MickLesk commented on GitHub (Sep 10, 2025):

Can anyone with this issue check following:

rm -rf /etc/apt/apt.conf.d/no-nag-script

cat >/etc/apt/apt.conf.d/no-nag-script <<'EOF'
DPkg::Post-Invoke { "if [ -s /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js ] && ! grep -q -F 'NoMoreNagging' /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js; then sed -i '/data\.status/{s/\!//;s/active/NoMoreNagging/}' /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js; fi"; };
EOF

cat >/etc/apt/apt.conf.d/no-nag-script-pmgmanagerlib-mobile <<'EOF'
DPkg::Post-Invoke { "if [ -s /usr/share/javascript/pmg-gui/js/pmgmanagerlib-mobile.js ] && ! grep -q -F 'NoMoreNagging' /usr/share/javascript/pmg-gui/js/pmgmanagerlib-mobile.js; then sed -i '/data\.status/{s/\!//;s/active/NoMoreNagging/}' /usr/share/javascript/pmg-gui/js/pmgmanagerlib-mobile.js; fi"; };
EOF

apt --reinstall install proxmox-widget-toolkit pmg-gui

Does this work?

@MickLesk commented on GitHub (Sep 10, 2025): Can anyone with this issue check following: ```bash rm -rf /etc/apt/apt.conf.d/no-nag-script cat >/etc/apt/apt.conf.d/no-nag-script <<'EOF' DPkg::Post-Invoke { "if [ -s /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js ] && ! grep -q -F 'NoMoreNagging' /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js; then sed -i '/data\.status/{s/\!//;s/active/NoMoreNagging/}' /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js; fi"; }; EOF cat >/etc/apt/apt.conf.d/no-nag-script-pmgmanagerlib-mobile <<'EOF' DPkg::Post-Invoke { "if [ -s /usr/share/javascript/pmg-gui/js/pmgmanagerlib-mobile.js ] && ! grep -q -F 'NoMoreNagging' /usr/share/javascript/pmg-gui/js/pmgmanagerlib-mobile.js; then sed -i '/data\.status/{s/\!//;s/active/NoMoreNagging/}' /usr/share/javascript/pmg-gui/js/pmgmanagerlib-mobile.js; fi"; }; EOF apt --reinstall install proxmox-widget-toolkit pmg-gui ``` Does this work?
Author
Owner

@J-C-P commented on GitHub (Sep 10, 2025):

Hi,

Thank you for your quick reaction !

I confirm this works.
No more error running apt.
No more subscription nag.

All good !!

You are the best :-)

@J-C-P commented on GitHub (Sep 10, 2025): Hi, Thank you for your quick reaction ! I confirm this works. No more error running apt. No more subscription nag. All good !! You are the best :-)
Author
Owner

@MickLesk commented on GitHub (Sep 10, 2025):

Alright, PR Incoming

@MickLesk commented on GitHub (Sep 10, 2025): Alright, PR Incoming
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ProxmoxVE#1582