Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deb package for Debian 8 (Jessie) is broken #1679

Closed
mcrauwel opened this issue Sep 8, 2018 · 6 comments
Closed

deb package for Debian 8 (Jessie) is broken #1679

mcrauwel opened this issue Sep 8, 2018 · 6 comments
Assignees

Comments

@mcrauwel
Copy link
Contributor

mcrauwel commented Sep 8, 2018

While debugging the puppet-proxysql module our acceptance tests have uncovered an issue trying to install v1.4.11 on Debian 8 (Jessie). I verified the same in a plain jessie testbox without using the puppet module.

Error output:

root@jessie:~# apt-get install -y lsb-release
Reading package lists... Done
Building dependency tree
Reading state information... Done
lsb-release is already the newest version.
lsb-release set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 84 not upgraded.
root@jessie:~# wget -O - 'http://repo.proxysql.com/ProxySQL/repo_pub_key' | apt-key add -
--2018-09-08 18:14:11--  http://repo.proxysql.com/ProxySQL/repo_pub_key
Resolving repo.proxysql.com (repo.proxysql.com)... 163.172.173.237
Connecting to repo.proxysql.com (repo.proxysql.com)|163.172.173.237|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1666 (1.6K)
Saving to: ‘STDOUT’

-                                            100%[===============================================================================================>]   1.63K  --.-KB/s   in 0.001s

2018-09-08 18:14:11 (1.54 MB/s) - written to stdout [1666/1666]

OK
root@jessie:~# echo deb http://repo.proxysql.com/ProxySQL/proxysql-1.4.x/$(lsb_release -sc)/ ./ | tee /etc/apt/sources.list.d/proxysql.list
deb http://repo.proxysql.com/ProxySQL/proxysql-1.4.x/jessie/ ./
root@jessie:~# apt-get update
Get:1 http://repo.proxysql.com ./ InRelease [2,070 B]
Hit http://security.debian.org jessie/updates InRelease
Get:2 http://repo.proxysql.com ./ Packages [2,651 B]
Hit http://security.debian.org jessie/updates/main Sources
Hit http://security.debian.org jessie/updates/main amd64 Packages
Ign http://httpredir.debian.org jessie InRelease
Hit http://httpredir.debian.org jessie Release.gpg
Hit http://httpredir.debian.org jessie Release
Hit http://httpredir.debian.org jessie/main Sources
Hit http://httpredir.debian.org jessie/main amd64 Packages
Fetched 4,721 B in 4s (1,068 B/s)
Reading package lists... Done
root@jessie:~# apt-get install proxysql
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  proxysql
0 upgraded, 1 newly installed, 0 to remove and 84 not upgraded.
Need to get 5,426 kB of archives.
After this operation, 22.8 MB of additional disk space will be used.
Get:1 http://repo.proxysql.com/ProxySQL/proxysql-1.4.x/jessie/ ./ proxysql 1.4.11 [5,426 kB]
Fetched 5,426 kB in 2s (2,286 kB/s)
Selecting previously unselected package proxysql.
(Reading database ... 28345 files and directories currently installed.)
Preparing to unpack .../proxysql_1.4.11_amd64.deb ...
Unpacking proxysql (1.4.11) ...
Processing triggers for systemd (215-17+deb8u7) ...
Setting up proxysql (1.4.11) ...
chmod: cannot access ‘/etc/proxysql/cnf’: No such file or directory
dpkg: error processing package proxysql (--configure):
 subprocess installed post-installation script returned error exit status 1
Processing triggers for systemd (215-17+deb8u7) ...
Errors were encountered while processing:
 proxysql
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@jessie:~#

or using the file from the releases page

root@jessie:~# wget https://github.com/sysown/proxysql/releases/download/v1.4.11/proxysql_1.4.11-debian8_amd64.deb

...

HTTP request sent, awaiting response... 200 OK
Length: 5424866 (5.2M) [application/octet-stream]
Saving to: ‘proxysql_1.4.11-debian8_amd64.deb’

...

2018-09-08 18:17:35 (1.71 MB/s) - ‘proxysql_1.4.11-debian8_amd64.deb’ saved [5424866/5424866]

root@jessie:~# md5sum proxysql_1.4.11-debian8_amd64.deb
07ad6bf2af1b91a937e220b4368d1030  proxysql_1.4.11-debian8_amd64.deb
root@jessie:~# dpkg -i proxysql_1.4.11-debian8_amd64.deb
(Reading database ... 28356 files and directories currently installed.)
Preparing to unpack proxysql_1.4.11-debian8_amd64.deb ...
Unpacking proxysql (1.4.11) over (1.4.11) ...
Setting up proxysql (1.4.11) ...
chmod: cannot access ‘/etc/proxysql/cnf’: No such file or directory
dpkg: error processing package proxysql (--install):
 subprocess installed post-installation script returned error exit status 1
Processing triggers for systemd (215-17+deb8u7) ...
Errors were encountered while processing:
 proxysql
root@jessie:~#
@pondix
Copy link
Contributor

pondix commented Sep 9, 2018

Release packages and repos updated! Thanks for submitting the fix.

@pondix pondix closed this as completed Sep 9, 2018
mcrauwel added a commit to MaxFedotov/puppet-proxysql that referenced this issue Sep 10, 2018
@irLinja
Copy link

irLinja commented Dec 24, 2018

I'm having same problem today!

aptitude install proxysql 
The following NEW packages will be installed:
  proxysql 
0 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 5,475 kB of archives. After unpacking 23.0 MB will be used.
Get: 1 http://repo.proxysql.com/ProxySQL/proxysql-1.4.x/jessie/ ./ proxysql 1.4.13 [5,475 kB]
Fetched 5,475 kB in 1s (3,948 kB/s)   
Selecting previously unselected package proxysql.
(Reading database ... 37550 files and directories currently installed.)
Preparing to unpack .../proxysql_1.4.13_amd64.deb ...
Unpacking proxysql (1.4.13) ...
Processing triggers for systemd (215-17+deb8u8) ...
Setting up proxysql (1.4.13) ...
chmod: cannot access ‘/etc/proxysql/cnf’: No such file or directory
dpkg: error processing package proxysql (--configure):
 subprocess installed post-installation script returned error exit status 1
Processing triggers for systemd (215-17+deb8u8) ...
Errors were encountered while processing:
 proxysql
E: Sub-process /usr/bin/dpkg returned an error code (1)
Failed to perform requested operation on package.  Trying to recover:
Setting up proxysql (1.4.13) ...
chmod: cannot access ‘/etc/proxysql/cnf’: No such file or directory
dpkg: error processing package proxysql (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 proxysql

OS version: Debian 8
Install source: debian repo http://repo.proxysql.com/ProxySQL/proxysql-1.4.x/$(lsb_release -sc)/

@pondix
Copy link
Contributor

pondix commented Jan 3, 2019

Fixed regression, repos updated.

@irLinja
Copy link

irLinja commented Jan 5, 2019

Hi @pondix ,
Not fixed yet.

E: Sub-process /usr/bin/dpkg returned an error code (1)
Failed to perform requested operation on package.  Trying to recover:
Setting up proxysql (1.4.13) ...
chmod: cannot access ‘/etc/proxysql/cnf’: No such file or directory
dpkg: error processing package proxysql (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 proxysql

@pondix pondix self-assigned this Jan 7, 2019
@pondix pondix reopened this Jan 7, 2019
@pondix
Copy link
Contributor

pondix commented Jan 7, 2019

Ack will check.

To double check, did you make sure to clean and update your apt-cache @irLinja ?

@pondix
Copy link
Contributor

pondix commented Jan 7, 2019

Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  proxysql
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 0 B/5,475 kB of archives.
After this operation, 23.0 MB of additional disk space will be used.
Selecting previously unselected package proxysql.
(Reading database ... 30382 files and directories currently installed.)
Preparing to unpack .../proxysql_1.4.13_amd64.deb ...
Unpacking proxysql (1.4.13) ...
Processing triggers for systemd (215-17+deb8u8) ...
Setting up proxysql (1.4.13) ...
Processing triggers for systemd (215-17+deb8u8) ...

Confirmed as working - @irLinja please try running apt purge proxysql && apt update && apt install proxysql to resolve your issue, it must be related to a locally cached copy of the previous package.

Also, please make sure you are using repo.proxysql.com (this updated package has been uploaded only to this repo (details here: https://github.com/sysown/proxysql/wiki).

@pondix pondix closed this as completed Jan 7, 2019
cegeka-jenkins pushed a commit to cegeka/puppet-proxysql that referenced this issue Aug 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants