Home > OS >  How to fix "readlink: missing operand"?
How to fix "readlink: missing operand"?

Time:11-08

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

CodePudding user response:

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

  • Related