• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Question Update error: unknown option --add-architecture on Ubuntu 14.04

sfa

New Pleskian
I'm running Plesk 12.5.30 Update #79 on Ubuntu 14.04.6.

Unfortunately, automatic updates fail. The log says:
Registering i386 architecture support
dpkg: error: unknown option --add-architecture

Type dpkg --help for help about installing and deinstalling packages [*];
Use `dselect' or `aptitude' for user-friendly package management;
Type dpkg -Dhelp for a list of dpkg debug flag values;
Type dpkg --force-help for a list of forcing options;
Type dpkg-deb --help for help about manipulating *.deb files;

Options marked [*] produce a lot of output - pipe it through `less' or `more' !

ERROR: Unable to add i386 architecture. Please, run command `/usr/bin/dpkg --add-architecture i386` manually and restart installation or upgrade.
Not all packages were installed.
Please try to install packages again later.
Please resolve this issue and try to install the packages again.
If you cannot resolve the issue on your own, contact product technical support for assistance.
I understand that the --add-architecture option is not implemented for dpkg under Ubuntu 14.04. I have hence manually added i386 by
sudo sh -c "echo 'foreign-architecture i386' > /etc/dpkg/dpkg.cfg.d/multiarch"
So now I do get
dpkg --print-architecture
amd64
dpkg --print-foreign-architectures
i386
But this doesn't help me since the Plesk updater is still trying to run dpkg --add-architecture. Is there any way for me to edit the update scripts to remove that line or any different solution to this?

Thanks in advance.
 
Back
Top