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

apt argument order #77

Closed
gm10 opened this issue Jul 22, 2018 · 3 comments
Closed

apt argument order #77

gm10 opened this issue Jul 22, 2018 · 3 comments

Comments

@gm10
Copy link
Contributor

gm10 commented Jul 22, 2018

One of the error messages from binary apt:

E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

That command works fine with binary apt, but it won't work on Mint because the apt script currently cannot handle the reversed argument order, it is hardcoded to look for the command only in the first argument:

https://github.com/linuxmint/mintsystem/blob/master/usr/local/bin/apt#L80

Suggest to instead check all arguments for a known command, use the rest as options.

@kj800x
Copy link

kj800x commented Sep 15, 2019

I just ran into this too.

As a temporary workaround switching the argument order will work (apt install --fix-broken)

Mint 19.2: https://termbin.com/qt67

@gm10
Copy link
Contributor Author

gm10 commented Sep 15, 2019

Feel free to use my PPA, it fixes this and many other bugs: https://launchpad.net/~gm10/+archive/ubuntu/linuxmint-tools

@gm10 gm10 closed this as completed Dec 17, 2019
@ledenis
Copy link

ledenis commented Jul 1, 2020

Why is it closed?

The order still seems to be hardcoded to look for the command only in the first argument?

https://github.com/linuxmint/mintsystem/blob/master/usr/local/bin/apt#L64

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

Successfully merging a pull request may close this issue.

4 participants