Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
xuancong84 opened this issue Oct 31, 2021 · 1 comment
Open

Comments

@xuancong84
Copy link

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!

@lufte
Copy link
Owner

lufte commented Oct 31, 2021

Interesting. Does it work if you put -P before -i.

This may make sense though. The documentation status that the usage is Usage: dpkg [<option>...] <command>, meaning, only one command. Maybe I'll incorporate your change into the codebase.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants