Skip to content

Incorrect dpkg command line format for some versions of Linux #1

@xuancong84

Description

@xuancong84

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions