The officially official Devuan Forum!

You are not logged in.

#1 2023-01-19 17:50:39

dcolburn
Member
Registered: 2022-11-02
Posts: 280  

[SOLVED] dkpg error

Clean new start - no RAID - just sda partitioned ...

https://www.sun2save.com/images/misc1/d … tions1.jpg

After I first saw this nginx error E: nginx-extras: installed nginx-extras package post-installation script subprocess returned error exit status 1 I tried reinstalling nginx from inside Synaptic Package Manager - no joy.

So, I tried this ...

root@devuan1:~# sudo dpkg --configure -a
Setting up nginx-extras (1.18.0-6.1+deb11u3) ...
Starting nginx: nginx failed!
invoke-rc.d: initscript nginx, action "start" failed.
dpkg: error processing package nginx-extras (--configure):
 installed nginx-extras package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 nginx-extras
root@devuan1:~# sudo apt-get install -f
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Could not get lock /var/cache/apt/archives/lock. It is held by process 2652 (synaptic)
N: Be aware that removing the lock file is not a solution and may break your system.
E: Unable to lock directory /var/cache/apt/archives/
root@devuan1:~# sudo apt-get install -f
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up nginx-extras (1.18.0-6.1+deb11u3) ...
Starting nginx: nginx failed!
invoke-rc.d: initscript nginx, action "start" failed.
dpkg: error processing package nginx-extras (--configure):
 installed nginx-extras package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 nginx-extras
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@devuan1:~# 

Any notion as to what's busted and how to proceed, please?

Offline

#2 2023-01-19 18:19:40

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

Re: [SOLVED] dkpg error

Is port 80 already being used by another application?

ss -nlt 'sport = 80'

The script is supposed to fail more gracefully though hmm

Your disk partitioning is still weird btw but I won't be discussing that in this thread.

EDIT: https://bugs.debian.org/cgi-bin/bugrepo … bug=754407.

Last edited by Head_on_a_Stick (2023-01-19 18:21:10)


Brianna Ghey — Rest In Power

Offline

#3 2023-01-19 18:21:54

Camtaf
Member
Registered: 2019-11-19
Posts: 439  

Re: [SOLVED] dkpg error

E: Could not get lock /var/cache/apt/archives/lock. It is held by process 2652

Try killing 2652 - sudo kill -9 2652

https://www.man7.org/linux/man-pages/man1/kill.1.html

Last edited by Camtaf (2023-01-19 18:22:52)

Offline

#4 2023-01-19 18:25:45

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

Re: [SOLVED] dkpg error

Camtaf wrote:

sudo kill -9 2652

Don't use SIGKILL unless absolutely necessary. Just use SIGTERM instead, which is the default action for kill.

And anyway the OP already killed it.


Brianna Ghey — Rest In Power

Offline

#5 2023-01-19 18:51:06

dcolburn
Member
Registered: 2022-11-02
Posts: 280  

Re: [SOLVED] dkpg error

Head_on_a_Stick wrote:

Is port 80 already being used by another application?

ss -nlt 'sport = 80'

The script is supposed to fail more gracefully though hmm

root@devuan1:/etc# ss -nlt 'sport = 80'
State   Recv-Q   Send-Q       Local Address:Port       Peer Address:Port   Process   
root@devuan1:/etc# 

Offline

#6 2023-01-19 18:58:10

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

Re: [SOLVED] dkpg error

What does the log say? Don't ask me where they are though. I don't know.


Brianna Ghey — Rest In Power

Offline

#7 2023-01-22 00:35:20

dcolburn
Member
Registered: 2022-11-02
Posts: 280  

Re: [SOLVED] dkpg error

Checked log and found my error. Thanks

Offline

Board footer