apt update messed up after crash

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

apt update messed up after crash

robert rottermann
Hi there,

during a manual apt update on a remote box, the terminal crashed.

No I can not run apt upgrade animore.

This is what I get when issuing

apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer
required:
   linux-headers-4.4.0-109 linux-headers-4.4.0-109-generic
linux-image-4.4.0-109-generic linux-image-extra-4.4.0-109-generic
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
26 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
.....

dpkg: error processing package php7.0-xml (--configure):
  dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of samba-common-bin:
  samba-common-bin depends on samba-common (=
2:4.3.11+dfsg-0ubuntu0.16.04.13); however:
   Package samba-common is not configured yet.

dpkg: error processing package samba-common-bin (--configure):
  dependency problems - leaving unconfigured
Errors were encountered while processing:
  grub-pc
  samba-common
  apparmor
  clamav-freshclam
  clamav
  clamav-daemon
  dovecot-core
  dovecot-sieve
  dovecot-managesieved
  dovecot-imapd
  dovecot-mysql
  dovecot-pop3d
  php7.0-common
  php7.0-json
  php7.0-opcache
  php7.0-readline
  php7.0-cli
  libapache2-mod-php7.0
  mail-stack-delivery
  php7.0-cgi
  php7.0
  php7.0-curl
  php7.0-mbstring
  php7.0-mysql
  php7.0-xml
  samba-common-bin
E: Sub-process /usr/bin/dpkg returned an error code (1)

any info how to proceed is very much appreciated

thanks

robert



--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Reply | Threaded
Open this post in threaded view
|

Re: apt update messed up after crash

Colin Law
On 27 March 2018 at 21:33, robert <[hidden email]> wrote:
Hi there,

during a manual apt update on a remote box, the terminal crashed.

No I can not run apt upgrade animore.

This is what I get when issuing

apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  linux-headers-4.4.0-109 linux-headers-4.4.0-109-generic linux-image-4.4.0-109-generic linux-image-extra-4.4.0-109-generic
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
26 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
.....

dpkg: error processing package php7.0-xml (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of samba-common-bin:
 samba-common-bin depends on samba-common (= 2:4.3.11+dfsg-0ubuntu0.16.04.13); however:
  Package samba-common is not configured yet.

dpkg: error processing package samba-common-bin (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
...
any info how to proceed is very much appreciated

Try
sudo apt update && sudo apt install -f

Colin
 

thanks

robert



--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users


--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Reply | Threaded
Open this post in threaded view
|

Re: apt update messed up after crash

Liam Proven
On 27 March 2018 at 22:52, Colin Law <[hidden email]> wrote:

> Try
> sudo apt update && sudo apt install -f

I suggest this first:

https://askubuntu.com/questions/775328/is-dpkg-reconfigure-all-still-available-in-16-04

If it doesn't work, make a note of their names, force-remove the
corrupted packages, try "dpkg configure all" again, _then_ "apt
full-upgrade -y".

--
Liam Proven • Profile: https://about.me/liamproven
Email: [hidden email] • Google Mail/Hangouts/Plus: [hidden email]
Twitter/Facebook/Flickr: lproven • Skype/LinkedIn: liamproven
UK: +44 7939-087884 • ČR (+ WhatsApp/Telegram/Signal): +420 702 829 053

--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Reply | Threaded
Open this post in threaded view
|

solved: apt update messed up after crash

robert rottermann



On 27.03.2018 23:34, Liam Proven wrote:
On 27 March 2018 at 22:52, Colin Law [hidden email] wrote:

Try
sudo apt update && sudo apt install -f
I suggest this first:

https://askubuntu.com/questions/775328/is-dpkg-reconfigure-all-still-available-in-16-04

If it doesn't work, make a note of their names, force-remove the
corrupted packages, try "dpkg configure all" again, _then_ "apt
full-upgrade -y".

this did not work either, but the above link pointed to some other solution:

This I have done:
1. I did run the script:
(
    for i in `dpkg -l | grep '^ii' | awk '{print $2}'`; do
        echo $i; sudo dpkg-reconfigure $i;
    done
) 2>&1 | tee dpkg-reconfigure.log

It reconfigures all installed packages and saves the log to dpkg-reconfigure.log file.

2. this produced:
debconf: DbDriver ”config“: config.dat is locked by another process: Resource temporarily unavailable” while installing packages

3. to find and kill the process holding the lock i did
fuser -vik /var/cache/debconf/config.dat

4. then I could run the above script again and all was well

thanks again
robert

--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Reply | Threaded
Open this post in threaded view
|

Re: solved: apt update messed up after crash

Liam Proven
On 28 March 2018 at 07:05, robert <[hidden email]> wrote:

>
> this did not work either, but the above link pointed to some other solution:
>
> This I have done:
> 1. I did run the script:
>
> (
>     for i in `dpkg -l | grep '^ii' | awk '{print $2}'`; do
>         echo $i; sudo dpkg-reconfigure $i;
>     done
> ) 2>&1 | tee dpkg-reconfigure.log
>
> It reconfigures all installed packages and saves the log to
> dpkg-reconfigure.log file.
>
> 2. this produced:
> debconf: DbDriver ”config“: config.dat is locked by another process:
> Resource temporarily unavailable” while installing packages
>
> 3. to find and kill the process holding the lock i did
>
> fuser -vik /var/cache/debconf/config.dat
>
>
> 4. then I could run the above script again and all was well
>
> thanks again
> robert

Oh, that's great! Very glad to hear it, and you're entirely welcome.


--
Liam Proven • Profile: https://about.me/liamproven
Email: [hidden email] • Google Mail/Hangouts/Plus: [hidden email]
Twitter/Facebook/Flickr: lproven • Skype/LinkedIn: liamproven
UK: +44 7939-087884 • ČR (+ WhatsApp/Telegram/Signal): +420 702 829 053

--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users