Error update failed

Post Reply
XAOC
Posts: 4
Joined: Tue Aug 25, 2020 7:32 am
Error update failed

Post by XAOC »

Cron <[email protected]> sudo /usr/local/vesta/bin/v-update-sys-vesta-all

Error: vesta update failed
Error: vesta-nginx update failed
Error: vesta-php update failed

Image

Clean install on Debian 9, it's the same with HestiaCP, while on standard VestaCP I don't have any issues regarding automatic updates.
Does anyone have a clue what's going on?

User avatar
myVesta
Site Admin
Posts: 574
Joined: Fri Jun 19, 2020 9:59 am
Re: Error update failed

Post by myVesta »

What is the content of these files:
/usr/local/vesta/log/update-vesta.log
/usr/local/vesta/log/update-vesta-nginx.log
/usr/local/vesta/log/update-vesta-php.log

XAOC
Posts: 4
Joined: Tue Aug 25, 2020 7:32 am
Re: Error update failed

Post by XAOC »

update-vesta.log

Code: Select all

Hit:1 http://apt.myvestacp.com/stretch stretch InRelease
Reading package lists...
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
update-vesta-nginx.log

Code: Select all

Hit:1 http://apt.myvestacp.com/stretch stretch InRelease
Reading package lists...
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
update-vesta-php.log

Code: Select all

Hit:1 http://apt.myvestacp.com/stretch stretch InRelease
Reading package lists...
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
Last edited by XAOC on Tue Aug 25, 2020 3:48 pm, edited 1 time in total.

User avatar
myVesta
Site Admin
Posts: 574
Joined: Fri Jun 19, 2020 9:59 am
Re: Error update failed

Post by myVesta »

You obviously have some 'apt' proccess that get locked in background.

What will happen if you run in SSH, as root, this:

Code: Select all

apt update
apt install vesta vesta-nginx vesta-php
?

XAOC
Posts: 4
Joined: Tue Aug 25, 2020 7:32 am
Re: Error update failed

Post by XAOC »

apt update

Image

apt install vesta vesta-nginx vesta-php

Image

User avatar
myVesta
Site Admin
Posts: 574
Joined: Fri Jun 19, 2020 9:59 am
Re: Error update failed

Post by myVesta »

Yes, as I suspected.

Try to unlock it by following this: https://itsfoss.com/could-not-get-lock-error/

XAOC
Posts: 4
Joined: Tue Aug 25, 2020 7:32 am
Re: Error update failed

Post by XAOC »

These commands fixed my problem:

Code: Select all

sudo lsof /var/lib/dpkg/lock
sudo lsof /var/lib/apt/lists/lock
sudo lsof /var/cache/apt/archives/lock

Code: Select all

sudo dpkg --configure -a
Thank you dpeca

absolutemusik
Posts: 11
Joined: Wed Feb 03, 2021 10:01 am
Re: Error update failed

Post by absolutemusik »

I am not sure whether the server information is correct. Please suggest. I have got the error message below when typing apt update.

-- message --

Get:6 http://apt.myvestacp.com/buster buster InRelease [2,305 B]
Err:6 http://apt.myvestacp.com/buster buster InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 88807D4B2221338C
Fetched 2,305 B in 1s (1,929 B/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
115 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://apt.myvestacp.com/buster buster InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 88807D4B2221338C
W: Failed to fetch http://apt.myvestacp.com/buster/dists/buster/InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 88807D4B2221338C
W: Some index files failed to download. They have been ignored, or old ones used instead.

User avatar
myVesta
Site Admin
Posts: 574
Joined: Fri Jun 19, 2020 9:59 am
Re: Error update failed

Post by myVesta »

absolutemusik wrote:
Wed Jul 28, 2021 11:41 am
I am not sure whether the server information is correct. Please suggest. I have got the error message below when typing apt update.
See this article -> signatures couldn't be verified, public key is not available NO_PUBKEY 88807D4B2221338C


Post Reply