RCady 0 Posted February 4, 2016 Posted February 4, 2016 (edited) Hi everyone, I'm not entirely sure if this is has been already or not, but I found a bug on my emby installation. I was previously running Emby Server on Ubuntu 14.04. My install became corrupt or something so it was no longer working. I decided to start over and uninstall Emby. When I did this I started down a path of errors that I couldn't track down. The main issue I was having was the inability to use apt-get install or apt-get remove. It was caused by the emby-server package not being fully removed. Anyway, I finally found the issue and it happened to be a file called: emby-server.postrm The path was: /var/lib/dpkg/info/ Here are the contents to the file: # Data directory where Emby database, cache and logs are stored PROGRAMDATA=${EMBY_DATA-/var/lib/$NAME} case "$1" in purge) echo PURGE | debconf-communicate $NAME > /dev/null 2>&1 || true if [ -f /etc/init.d/$NAME ]; then update-rc.d -f $NAME remove > /dev/null 2>&1 || exit $? fi if [ -d $PROGRAMDATA ]; then rm -rf $PROGRAMDATA fi userdel emby > /dev/null 2>&1 || true delgroup --quiet emby 2>&1 || true [ -f /etc/init.d/emby ] && rm /etc/init.d/emby [ -f /etc/init.d/emby-server ] && rm /etc/init.d/emby-server [ -f /etc/init.d/emby-server-beta ] && rm /etc/init.d/emby-server-beta [ -f /etc/init.d/emby-server-dev ] && rm /etc/init.d/emby-server-dev [ -f /etc/init.d/mediabrowser ] && rm /etc/init.d/mediabrowser [ -f /etc/init/emby-server ] && rm /etc/init/emby-server [ -f /etc/init/emby-server-beta ] && rm /etc/init/emby-server-beta [ -f /etc/init/emby-server-dev ] && rm /etc/init/emby-server-dev [ -f /etc/emby-server.conf ] && rm /etc/emby-server.conf [ -f /usr/bin/emby-server ] && rm /usr/bin/emby-server [ -f /etc/sudoers.d/emby ] && rm /etc/sudoers.d/emby [ -f /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe.so ] && rm /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe.so [ -d /usr/lib/emby-server ] && rm -rf /usr/lib/emby-server fi // Line 46 Source of Problem ;; remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) ;; *) echo "postrm called with unknown argument \`$1'" >&2 exit 1 ;; esac exit 0 The error: /var/lib/dpkg/info/emby-server.postrm: 46: /var/lib/dpkg/info/emby-server.postrm: Syntax error: "fi" unexpected (expecting ";;") I definitely should pay attention to the logs more because it clearly tells you want the problem was. On line 46 I removed the "fi" (end if), saved and re-ran the uninstall. It worked! Just putting this out there so that if anyone else is experience this, they can figure it out. Edited February 4, 2016 by RCady
thefirstofthe300 292 Posted February 4, 2016 Posted February 4, 2016 (edited) @hurricanehrndez Is this still relevant? MOVED: This is a Linux specific issue. Edited February 4, 2016 by thefirstofthe300
hurricanehrndz 149 Posted February 6, 2016 Posted February 6, 2016 Nope got update. https://github.com/MediaBrowser/Emby.Build/blob/master/builders/emby-server/debfiles/postrm
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now