Arthur Thina
Arthur Thina

Reputation: 53

How to fix "readlink: missing operand"?

I am getting this error after typing sudo apt autoremove in terminal

readlink: missing operand
Try 'readlink --help' for more information.
stat: missing operand
Try 'stat --help' for more information.
E: Problem executing scripts DPkg::Pre-Invoke 'stat -c %Z $(readlink -f $(which opera)) > /tmp/opera.timestamp'
E: Sub-process returned an error code

I don't know how to solve this. Can anyone help me??

Thanks

Upvotes: 4

Views: 7640

Answers (2)

Mohamad Termizi
Mohamad Termizi

Reputation: 1

Thanks to Mr Termy that suggested to run CLI "$ sudo touch /usr/local/bin/opera; sudo chmod 755 /usr/local/bin/opera" and it works for me - great!

https://forums.linuxmint.com/viewtopic.php?t=399359

Upvotes: 0

user9706
user9706

Reputation:

readlink requires a file and $(which opera) returns nothing. As @mkayaalp mentioned in the above, you need to either (re)install opera (if you haven't) or update the PATH so which can find the binary.

Upvotes: 1

Related Questions