alexmyczko / ruptime

poor man’s ruptime
https://wedonthaveaprivacyproblem.com/ruptime
GNU Affero General Public License v3.0
151 stars 7 forks source link

install fails on ubuntu 22.04 #12

Closed kanarelo closed 8 months ago

kanarelo commented 8 months ago

I couldn't get the package to install on ubuntu 22.04

root@web-server:~# DEBIAN_FRONTEND=noninteractive apt install ./ruptime_1.6-1_all.deb
Reading package lists... Done
E: Unsupported file ./ruptime_1.6-1_all.deb given on commandline

How do you plan on testing on other systems/architectures?

alexmyczko commented 8 months ago

it's called ./ruptime_1.6.1-amd64.deb now, the amd64 has a Depends on dmidecode while the arm64 one does not. :) sorry for the inconvenience

kanarelo commented 8 months ago

This is what I get on installing running amd64 version:

root@web-server:~# DEBIAN_FRONTEND=noninteractive apt install ./ruptime_1.6-1_amd64.deb 
Reading package lists... Error!
E: read, still have 28 to read but none left
E: Error reading archive member header
E: Could not read meta data from /root/ruptime_1.6-1_amd64.deb
E: The package lists or status file could not be parsed or opened.
alexmyczko commented 8 months ago

never seen that, what happens with apt install ./ruptime_1.6-1_amd64.deb ?

kanarelo commented 8 months ago

Its abit more straight foward error

root@web-server:~# DEBIAN_FRONTEND=noninteractive apt install ./ruptime_1.6-1_arm64.deb 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'ruptime:arm64' instead of './ruptime_1.6-1_arm64.deb'
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 ruptime:arm64 : Depends: acct:arm64 but it is not installable
                 Depends: datamash:arm64 but it is not installable
                 Depends: mcrypt:arm64 but it is not installable
                 Depends: memtester:arm64 but it is not installable
                 Depends: netcat-openbsd:arm64 but it is not installable or
                          netcat-traditional:arm64 but it is not installable
E: Unable to correct problems, you have held broken packages.
alexmyczko commented 8 months ago

wrong one? what does dpkg --print-architecture say?

kanarelo commented 8 months ago

Sorry I misread... the command

root@web-server:~# apt install ./ruptime_1.6-1_amd64.deb
Reading package lists... Error!
E: read, still have 28 to read but none left
E: Error reading archive member header
E: Could not read meta data from /root/ruptime_1.6-1_amd64.deb
E: The package lists or status file could not be parsed or opened.
kanarelo commented 8 months ago
dpkg --print-architecture
amd64
alexmyczko commented 8 months ago

can you retry with 1.8?

kanarelo commented 8 months ago

Got this error while installing on Ubuntu. Not sure if it is problematic.

N: Download is performed unsandboxed as root as file '/root/ruptime_1.8-1_amd64.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)

Full context:

root@web-server:~# DEBIAN_FRONTEND=noninteractive apt install ./ruptime_1.8-1_amd64.deb
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'ruptime' instead of './ruptime_1.8-1_amd64.deb'
The following packages were automatically installed and are no longer required:
  libcgi-fast-perl libcgi-pm-perl libclone-perl libencode-locale-perl libevent-pthreads-2.1-7 libfcgi-bin libfcgi-perl libfcgi0ldbl libhtml-parser-perl libhtml-tagset-perl libhtml-template-perl
  libhttp-date-perl libhttp-message-perl libio-html-perl liblwp-mediatypes-perl libmecab2 libprotobuf-lite23 libtimedate-perl liburi-perl mecab-ipadic mecab-ipadic-utf8 mecab-utils mysql-client-8.0
  mysql-client-core-8.0 mysql-server-8.0 mysql-server-core-8.0
Use 'apt autoremove' to remove them.
The following NEW packages will be installed:
  ruptime
0 upgraded, 1 newly installed, 0 to remove and 59 not upgraded.
Need to get 0 B/22.3 kB of archives.
After this operation, 96.3 kB of additional disk space will be used.
Get:1 /root/ruptime_1.8-1_amd64.deb ruptime amd64 1.8-1 [22.3 kB]
Selecting previously unselected package ruptime.
(Reading database ... 122189 files and directories currently installed.)
Preparing to unpack /root/ruptime_1.8-1_amd64.deb ...
Unpacking ruptime (1.8-1) ...
Setting up ruptime (1.8-1) ...

Creating config file /etc/cron.d/ruptime with new version

Creating config file /etc/ruptime/ruptime.conf with new version

Creating config file /etc/ruptime/ruptime.key with new version
Processing triggers for man-db (2.10.2-1) ...
NEEDRESTART-VER: 3.5
NEEDRESTART-KCUR: 5.15.0-94-generic
NEEDRESTART-KEXP: 5.15.0-97-generic
NEEDRESTART-KSTA: 3
NEEDRESTART-SVC: funkwhale-server.service
NEEDRESTART-SVC: funkwhale-worker.service

N: Download is performed unsandboxed as root as file '/root/ruptime_1.8-1_amd64.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
alexmyczko commented 8 months ago

perfect, it worked!