On some versions of Linux (such as MX Linux), the dpkg command is buggy when having -i and -P in one go.
I get the following error:
dpkg: error: cannot access archive '-P': No such file or directory
So I separated the joint command dpkg -i install1 install2 ... -P remove1 remove2 ... into 2 commands:
dpkg -P remove1 remove2 ...
dpkg -i install1 install2 ...
After that, it works out of charm, thanks!
On some versions of Linux (such as MX Linux), the
dpkgcommand is buggy when having -i and -P in one go.I get the following error:
dpkg: error: cannot access archive '-P': No such file or directorySo I separated the joint command
dpkg -i install1 install2 ... -P remove1 remove2 ...into 2 commands:After that, it works out of charm, thanks!