Jump to content

New Debian and Ubuntu Install Instructions.


hurricanehrndz

Recommended Posts

Xtropy

Install fails on Ubuntu. Looks like it's trying to chown to âokâ ?

 

sudo apt-get install emby-server
 
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up emby-server (3.0.5621.4.gitf352631) ...
/var/lib/emby
chown: invalid user: âokâ
chown: invalid user: âokâ
pgrep: invalid user name: ok
 * EmbyServer: fatal pgrep error (2), aborting
invoke-rc.d: initscript emby-server, action "start" failed.
dpkg: error processing package emby-server (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 emby-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
Link to comment
Share on other sites

hurricanehrndz

 

Install fails on Ubuntu. Looks like it's trying to chown to âokâ ?

 

$ sudo apt-get install emby-server
 
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up emby-server (3.0.5621.4.gitf352631) ...
/var/lib/emby
chown: invalid user: âokâ
chown: invalid user: âokâ
pgrep: invalid user name: ok
 * EmbyServer: fatal pgrep error (2), aborting
invoke-rc.d: initscript emby-server, action "start" failed.
dpkg: error processing package emby-server (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 emby-server
E: Sub-process /usr/bin/dpkg returned an error code (1)

 

Do you usually use the username emby? If so please edit /etc/default/emby-server and make it the line EB_USER the following:

EB_USER="emby"
Link to comment
Share on other sites

Xtropy

 

Do you usually use the username emby? If so please edit /etc/default/emby-server and make it the line EB_USER the following:

EB_USER="emby"

 

I did this but as soon as I run sudo apt-get install emby-server, it changes /etc/default/emby-server back to "ok" and it fails again. I did a sudo apt-get remove emby-server and it fails with the "ok" user, changed /etc/default/emby-server again to "emby" and I was able to remove the package. I run sudo apt-get install emby-server and the same thing happens again with "ok" as the user name....

Link to comment
Share on other sites

hurricanehrndz

Strange. I will try and fix tonight. Ps you don't have to reinstall after changing the username you can just run the service command

Link to comment
Share on other sites

hurricanehrndz

In your install you some how must.have entered Okay into the deaconf screen.

Link to comment
Share on other sites

Xtropy

Strange. I will try and fix tonight. Ps you don't have to reinstall after changing the username you can just run the service command

 

The issue I have is it's stuck in a loop whenever I run apt-get update now since it sees this as a failed install. I'll just remove emby for now, even after running apt-get purge and starting from scratch I have this issue (Ubuntu 14.04.2 LTS)

 

$ sudo apt-get upgrade
 
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up emby-server (3.0.5621.4.gitf352631) ...
/var/lib/emby-server
chown: invalid user: âokâ
chown: invalid user: âokâ
pgrep: invalid user name: ok
 * EmbyServer: fatal pgrep error (2), aborting
invoke-rc.d: initscript emby-server, action "start" failed.
dpkg: error processing package emby-server (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 emby-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
Link to comment
Share on other sites

hurricanehrndz

Try resetting the deaconf settings.

echo RESET question | debconf-communicate emby-sever

Link to comment
Share on other sites

Xtropy

I ran the command and it says "10 question doesn't exist" referencing /var/cache/debconf/passwords.dat

 

I ran:

 

sudo nano /var/cache/debconf/passwords.dat

 

There is nothing in this file related to emby ?

 

Oh well... I am having a lot of problems with emby after each release, the PPA this week broke scheduled tasks and GUID errors on plugin setups and now I can't install the program itself. I'll just wait a month or so for this project to mature and the bugs to work themselves out. Thanks for the help, I seem to be the only one with issues for some reason.... 

Edited by Xtropy
Link to comment
Share on other sites

JoeyMuyo

I have the same problem. There are always teething problems in initial release. No matter who does them! I am sure hurricanehernandez will sort it out soon enough.

 

In the meantime I will try and clear the error in apt and post if I get anywhere.

 

EDIT: I should mention emby runs fine if you change the username in /etc/default/emby-server like hurricanehernandez suggested. It is just a matter of getting apt to realise the app is actually installed.

Edited by JoeyMuyo
Link to comment
Share on other sites

Xtropy

I have the same problem. There are always teething problems in initial release. No matter who does them! I am sure hurricanehernandez will sort it out soon enough.

 

In the meantime I will try and clear the error in apt and post if I get anywhere.

 

EDIT: I should mention emby runs fine if you change the username in /etc/default/emby-server like hurricanehernandez suggested. It is just a matter of getting apt to realise the app is actually installed.

 

If you change the user to emby in /etc/default/emby-server and run: sudo apt-get purge emby-server it will uninstall the program and then you won't get stuck in the loop every time you run apt-get commands. That was the only way I was able to fix the issue. Once you re-install emby-server, this error will come up with every apt-get command as it's seen as a failed package.

Link to comment
Share on other sites

JoeyMuyo

If you change the user to emby in /etc/default/emby-server and run: sudo apt-get purge emby-server it will uninstall the program and then you won't get stuck in the loop every time you run apt-get commands. That was the only way I was able to fix the issue. Once you re-install emby-server, this error will come up with every apt-get command as it's seen as a failed package.

I just changed the init script, which is only going to be a temporary measure for sure, from:

 

USER=${EB_USER-emby}

 

To:

 

USER=emby

 

This stops it checking the /etc/defaults/emby-server file that has the user listed as "ok"

 

Then running apt-get update && upgrade completes. Obviously this is only until the package is sorted, which won't be long, but it gets rid of the errors and lets you use apt-get.

 

EDIT: The GUID error is still occuring with the plugins though, so that does need sorting too.

Edited by JoeyMuyo
  • Like 1
Link to comment
Share on other sites

Xtropy

Confirmed that changing USER=${EB_USER-emby} to USER=emby is a workaround for this issue. Thanks for the tip

Link to comment
Share on other sites

hurricanehrndz

I believe the debconf database for emby has ok please run the following command and report back:

debconf-show emby-server
Edited by hurricanehernandez
Link to comment
Share on other sites

hurricanehrndz

Okay, I found the error. I'm trying to fix it. I'm not sure why debconf and the templates file stopped working. I'm trying to pinpoint the exact issue.

Link to comment
Share on other sites

JoeyMuyo

 

I believe the debconf database for emby has ok please run the following command and report back:

debconf-show emby-server

 

When I ran that I got the following:

  emby-server/old-running:
* emby-server/user: emby
* emby-server/permissions:
Link to comment
Share on other sites

hurricanehrndz

I found the error. It's in the posinst script:

 

a new package is being build.

Link to comment
Share on other sites

JoeyMuyo

Thanks for the help, guys and sorry for the trouble.

No problem. Thanks for sorting it do quickly!

Link to comment
Share on other sites

Xtropy

Confirmed this is now fixed. There was no version bump so to run the fix, you need to do: sudo apt-get install --reinstall emby-server

Link to comment
Share on other sites

ejr1212

I recently setup Mediabrowser on an Ubuntu Server.  Last night I tried to upgrade to the latest Emby-Server version.  I followed the install instructions and received the following error:

 

Preconfiguring packages ...
(Reading database ... 125929 files and directories currently installed.)
Preparing to unpack .../emby-server_3.0.5621.4.gitf352631_all.deb ...
Stopping MediaBrowser Server!
rm: cannot remove ‘/var/run/’: Is a directory
dpkg: error processing archive /var/cache/apt/archives/emby-server_3.0.5621.4.gitf352631_all.deb (--unpack):
 subprocess new pre-installation script returned error exit status 1
Errors were encountered while processing:
 /var/cache/apt/archives/emby-server_3.0.5621.4.gitf352631_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
 
Any thoughts?
Link to comment
Share on other sites

hurricanehrndz

 

I recently setup Mediabrowser on an Ubuntu Server.  Last night I tried to upgrade to the latest Emby-Server version.  I followed the install instructions and received the following error:

 

Preconfiguring packages ...
(Reading database ... 125929 files and directories currently installed.)
Preparing to unpack .../emby-server_3.0.5621.4.gitf352631_all.deb ...
Stopping MediaBrowser Server!
rm: cannot remove ‘/var/run/’: Is a directory
dpkg: error processing archive /var/cache/apt/archives/emby-server_3.0.5621.4.gitf352631_all.deb (--unpack):
 subprocess new pre-installation script returned error exit status 1
Errors were encountered while processing:
 /var/cache/apt/archives/emby-server_3.0.5621.4.gitf352631_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
 
Any thoughts?

 

I will take a look at the pre installation script.Script will be fixed, but you can install by stopping mediabrowser and removing /var/run/mediabrowser.pid

Edited by hurricanehernandez
Link to comment
Share on other sites

cones

I will take a look at the pre installation script.Script will be fixed, but you can install by stopping mediabrowser and removing /var/run/mediabrowser.pid

 

Had that same issue even though i tried uninstalling mediabrowser first, even used purged. Had to delete that one file manually to get it to work. 

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...