Jump to content

Error installing or removing 3.0.7100


kjp4756

Recommended Posts

Ubuntu 16.04

 

I get this when trying to upgrade from .7000 to .7100.  I'm also unable to uninstall emby-server/ 

 

Preparing to unpack .../emby-server_3.0.7100-71.1_all.deb ...

/var/lib/dpkg/info/emby-server.prerm: line 26: syntax error near unexpected token `2'

dpkg: warning: subprocess old pre-removal script returned error exit status 2

dpkg: trying script from the new package instead ...

/var/lib/dpkg/tmp.ci/prerm: line 26: syntax error near unexpected token `2'

dpkg: error processing archive /var/cache/apt/archives/emby-server_3.0.7100-71.1_all.deb (--unpack):

 subprocess new pre-removal script returned error exit status 2

Errors were encountered while processing:

 /var/cache/apt/archives/emby-server_3.0.7100-71.1_all.deb

E: Sub-process /usr/bin/dpkg returned an error code (1)

 

 

Link to comment
Share on other sites

In /var/lib/dpkg/info/emby-server.prerm, line 26 reads:

 

deb-systemd-invoke stop ${NAME}.service > 2>&1 /dev/null

 

when it should be:

 

deb-systemd-invoke stop ${NAME}.service 2>&1 /dev/null

 

After making these changes I am able to upgrade.

  • Like 4
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...