libretime / libretime-debian-packaging

Debian packaging for LibreTime
Other
8 stars 3 forks source link

Error installing on Ubuntu Xenial #10

Closed paddatrapper closed 5 years ago

paddatrapper commented 5 years ago

Error installing on Xenial as well.

apt:

$ sudo apt install ./libretime_3.0.0~alpha.8-1ubuntu2_amd64.deb
Reading package lists... Done
E: Unsupported file ./libretime_3.0.0~alpha.8-1ubuntu2_amd64.deb given on commandline

dpkg:

$ sudo dpkg -i libretime_3.0.0.alpha.8-1ubuntu2_amd64.deb
(Reading database ... 94811 files and directories currently installed.)
Preparing to unpack libretime_3.0.0.alpha.8-1ubuntu2_amd64.deb ...postinst called with unknown argument `install' 
dpkg: error processing archive libretime_3.0.0.alpha.8-1ubuntu2_amd64.deb (--install): subprocess new pre-installation script returned error exit status 1
Errors were encountered while processing: libretime_3.0.0.alpha.8-1ubuntu2_amd64.deb

Originally posted by @alternativesurfer in https://github.com/LibreTime/libretime-debian-packaging/issues/9#issuecomment-540255468

paddatrapper commented 5 years ago

@alternativesurfer what is the checksum of the deb you downloaded and what version of apt do you have?

alternativesurfer commented 5 years ago

Hi, sorry, missed that update. Just tested again on LibreTime 3.0.0~alpha.8-1u3 and receive this error:

$ sudo apt install libretime_3.0.0.alpha.8-1ubuntu3_amd64.de                                                                                                                                                                                                                                             b
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libretime_3.0.0.alpha.8-1ubuntu3_amd64.deb
E: Couldn't find any package by glob 'libretime_3.0.0.alpha.8-1ubuntu3_amd64.deb                                                                                                                                                                                                                                             '
E: Couldn't find any package by regex 'libretime_3.0.0.alpha.8-1ubuntu3_amd64.de                                                                                                                                                                                                                                             b'

APT: 1.2.32

Checksums MD5 eb01c1082e4335f06b39f0b213ca9f31 libretime_3.0.0.alpha.8-1ubuntu2_amd64.deb SHA1 4ef6cfb0ac37afbb56ba4cb611cc8edeb321b693 libretime_3.0.0.alpha.8-1ubuntu2_amd64.deb SHA256 d6c58267b96d09f53949bc3c77dd2b05eae1a2b7c7999ec7d63caff06e663a47 libretime_3.0.0.alpha.8-1ubuntu2_amd64.deb

MD5 3ffb6f126589e4fb9cfae5ddfa4ce9b7 libretime_3.0.0.alpha.8-1ubuntu3_amd64.deb SHA1 d24c732b7a089f6a6a94a676f9ea1a43cbed2b89 libretime_3.0.0.alpha.8-1ubuntu3_amd64.deb SHA256 87357104c07081f7b876f746e3da633679e4c5aabd14008966aac672e5c838cd libretime_3.0.0.alpha.8-1ubuntu3_amd64.deb

paddatrapper commented 5 years ago

$ sudo apt install libretime_3.0.0.alpha.8-1ubuntu3_amd64.deb

You need to specify a path, otherwise apt will try install it from the repos. Run this instead (note the ./):

sudo apt install ./libretime_3.0.0.alpha.8-1ubuntu3_amd64.deb
m0ck0 commented 5 years ago

having the same issue in bionic, kindof, any hints on what should i check?

Get:1 /home/ubuntu/libretime/libretime_3.0.0.alpha.8-1ubuntu3_amd64.deb libretime amd64 3.0.0~alpha.8-1ubuntu3 [12.0 MB] (Reading database ... 103959 files and directories currently installed.) Preparing to unpack .../libretime_3.0.0.alpha.8-1ubuntu3_amd64.deb ... postinst called with unknown argument install'
dpkg: error processing archive /home/ubuntu/libretime/libretime_3.0.0.alpha.8-1ubuntu3_amd64.deb (--unpack):
new libretime package pre-installation script subprocess returned error exit status 1
Errors were encountered while processing:
/home/ubuntu/libretime/libretime_3.0.0.alpha.8-1ubuntu3_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
ubuntu@xxx:/libretime$ apt -v
apt 1.6.12 (amd64)
ubuntu@xxx:/libretime$ md5sum libretime_3.0.0.alpha.8-1ubuntu3_amd64.deb
3ffb6f126589e4fb9cfae5ddfa4ce9b7 libretime_3.0.0.alpha.8-1ubuntu3_amd64.deb

(edit: formatting is hard when you are dumb)

paddatrapper commented 5 years ago

@m0ck0 what command are you using to install?

m0ck0 commented 5 years ago
sudo apt install icecast2 ./libretime_3.0.0.alpha.8-1ubuntu3_amd64.deb

anyway i ended up installing it by downloading de tar.gz and runing ./install and worked like a charm.

paddatrapper commented 5 years ago

For some reason dpkg is calling libretime.postinst with the install argument, instead of libretime.preinst. I have fixed it and it will be in the next release

alternativesurfer commented 4 years ago

anyway i ended up installing it by downloading de tar.gz and runing ./install and worked like a charm.

I ended up going this route however received an error again:

Install default Airtime apache configuration? (Y/n): y

-----------------------------------------------------
                * Configuring Apache *
-----------------------------------------------------
AH00526: Syntax error on line 26 of /etc/apache2/sites-enabled/airtime.conf:
Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
ERROR: unknown location of Apache sites-available or virtual host directory!

Seems like the autoinstaller is not enabling rewrite.

If I manually activate rewrite the installer continues, finishing with:

Installed /usr/local/lib/python2.7/dist-packages/airtime_celery-0.1-py2.7.egg
Processing dependencies for airtime-celery==0.1
error: kombu 3.0.33 is installed but kombu<3.1,>=3.0.37 is required by set(['celery'])

after which I can open the webgui, however authenticating to the DB Settings page always rejects the default credentials. image

Manually edited them in postgre

Error with default RabbitMQ creds: image

paddatrapper commented 4 years ago

I suggest you do one of three things:

  1. Open an issue at LibreTime/libretime with the details;
  2. Ask on Discourse; or
  3. Ask on Mattermost

Where more people will be able to help you