-1

Am trying a published solution to remove systemd-shim error after upgrade from 16.04 to 18.04 but get a bash syntax error as follows (you can see I tried different permutations of the same command in terminal).

screenshot of script error

I don't understand why it results in this error.

αғsнιη
  • 36,350

2 Answers2

12

I guess you are following this instruction.

As I said in comments, <original file name> and <new file name> are only place holders for real file names and you should exchange them with those names.

So the real command is:

sudo mv /usr/share/dbus-1/system-services/org.freedesktop.systemd1.service /usr/share/dbus-1/system-services/org.freedesktop.systemd1.service.bk

which you can simplify to:

sudo mv /usr/share/dbus-1/system-services/org.freedesktop.systemd1.service{,.bk}
Zanna
  • 72,312
Ravexina
  • 57,256
4

You get this error message because < is used for redirection. If you quote the arguments to mv with single quotes you get a clearer error message:

$ mv  '<original file name>' '<new file name>'
mv: cannot stat ‘<original file name>’: No such file or directory
chicks
  • 574