when running apt-get upgrade my computer reboots

If none of the more specific forums is the right place to ask

Re: when running apt-get upgrade my computer reboots

Postby alma359 » 2019-10-24 12:08

I fixed my locales but the error with libicu57 still exists.

I searched for libicu57 in /var/lib/dpkg/status and found this:
Code: Select all
Package: libicu57
Status: install reinstreq half-installed
Priority: optional
Section: libs
Architecture: amd64
Multi-Arch: same
Version: 57.1-6+deb9u3

Now i want to remove this package manually.
Is it safe do delete these files ? from here: https://packages.debian.org/stretch/amd64/libicu57/filelist
Code: Select all
/usr/lib/x86_64-linux-gnu/libicudata.so.57
/usr/lib/x86_64-linux-gnu/libicudata.so.57.1
/usr/lib/x86_64-linux-gnu/libicui18n.so.57
/usr/lib/x86_64-linux-gnu/libicui18n.so.57.1
/usr/lib/x86_64-linux-gnu/libicuio.so.57
/usr/lib/x86_64-linux-gnu/libicuio.so.57.1
/usr/lib/x86_64-linux-gnu/libicule.so.57
/usr/lib/x86_64-linux-gnu/libicule.so.57.1
/usr/lib/x86_64-linux-gnu/libiculx.so.57
/usr/lib/x86_64-linux-gnu/libiculx.so.57.1
/usr/lib/x86_64-linux-gnu/libicutest.so.57
/usr/lib/x86_64-linux-gnu/libicutest.so.57.1
/usr/lib/x86_64-linux-gnu/libicutu.so.57
/usr/lib/x86_64-linux-gnu/libicutu.so.57.1
/usr/lib/x86_64-linux-gnu/libicuuc.so.57
/usr/lib/x86_64-linux-gnu/libicuuc.so.57.1
/usr/share/doc/libicu57/NEWS.Debian.gz
/usr/share/doc/libicu57/changelog.Debian.gz
/usr/share/doc/libicu57/copyright
/usr/share/lintian/overrides/libicu57
alma359
 
Posts: 15
Joined: 2019-10-21 21:53

Re: when running apt-get upgrade my computer reboots

Postby L_V » 2019-10-24 13:50

alma359 wrote:error with libicu57 still exists.
I searched for libicu57 in /var/lib/dpkg/status and found this
Package: libicu57
Status: install reinstreq half-installed:

Already done. This is what I am trying to solve.....
Code: Select all
dpkg-query -l | egrep -v '^(ii|un|rc)' | sed '1,5d' | awk '{print $1,$2,$3}'
iHR libicu57:amd64 57.1-6+deb9u3

Do you mean my two previous commands return really nothing at all ? (bottom previous page)

+ If you are sure you don't need libicu57 in Stretch, of course, remove it.
Last edited by L_V on 2019-10-24 14:12, edited 3 times in total.
L_V
 
Posts: 1126
Joined: 2007-03-19 09:04

Re: when running apt-get upgrade my computer reboots

Postby alma359 » 2019-10-24 14:08

The first command
Code: Select all
ls /var/lib/dpkg/updates/
returns nothing and the second
Code: Select all
root@miniServer:/var/lib/dpkg# grep 'Package: python3' /var/lib/apt/lists/ftp.uni-sofia.bg_debian_dists_stretch_main_binary-amd64_Packages | head
Package: python3-abstract-rendering
Package: python3-actdiag
Package: python3-adios
Package: python3-aiocoap
Package: python3-aiodns
Package: python3-aiohttp-jinja2
Package: python3-aiohttp-mako
Package: python3-aiopg
Package: python3-aioredis
Package: python3-aioxmlrpc


I'm not sure if i need libicu57.
alma359
 
Posts: 15
Joined: 2019-10-21 21:53

Re: when running apt-get upgrade my computer reboots

Postby L_V » 2019-10-24 14:10

To check if you need libicu57 in Stretch, you can simulate:
Code: Select all
apt remove -s libicu57
L_V
 
Posts: 1126
Joined: 2007-03-19 09:04

Re: when running apt-get upgrade my computer reboots

Postby alma359 » 2019-10-24 14:14

L_V wrote:To check if you need libicu57 in Stretch, you can simulate:
Code: Select all
apt remove -s libicu57


Unfortunately i need it. php and nginx(which i need for my webserver) depend on it.
alma359
 
Posts: 15
Joined: 2019-10-21 21:53

Re: when running apt-get upgrade my computer reboots

Postby L_V » 2019-10-24 14:16

Before starting dirty operations (...), try this
Code: Select all
dpkg --configure --pending
L_V
 
Posts: 1126
Joined: 2007-03-19 09:04

Re: when running apt-get upgrade my computer reboots

Postby alma359 » 2019-10-24 14:23

L_V wrote:Before starting dirty operations (...), try this
Code: Select all
dpkg --configure --pending

did not work.
alma359
 
Posts: 15
Joined: 2019-10-21 21:53

Re: when running apt-get upgrade my computer reboots

Postby L_V » 2019-10-24 14:31

Code: Select all
ls /var/lib/dpkg/info/libicu57*
L_V
 
Posts: 1126
Joined: 2007-03-19 09:04

Re: when running apt-get upgrade my computer reboots

Postby alma359 » 2019-10-24 14:37

L_V wrote:
Code: Select all
ls /var/lib/dpkg/info/libicu57*

Code: Select all
root@miniServer:~# ls /var/lib/dpkg/info/libicu57*
ls: cannot access '/var/lib/dpkg/info/libicu57*': No such file or directory
alma359
 
Posts: 15
Joined: 2019-10-21 21:53

Re: when running apt-get upgrade my computer reboots

Postby L_V » 2019-10-24 14:40

This is strange.
Be sure your network is active for following commands.
Code: Select all
cd /tmp
wget http://ftp.uni-sofia.bg/debian/pool/main/i/icu/libicu57_57.1-6+deb9u3_amd64.deb
dpkg --purge libicu57
dpkg -i libicu57*.deb
dpkg -l | grep libicu57 | awk '{print $1,$2}'
apt install -f
L_V
 
Posts: 1126
Joined: 2007-03-19 09:04

Re: when running apt-get upgrade my computer reboots

Postby alma359 » 2019-10-24 14:55

L_V wrote:This is strange.
Be sure your network is active for following commands.
Code: Select all
cd /tmp
wget http://ftp.uni-sofia.bg/debian/pool/main/i/icu/libicu57_57.1-6+deb9u3_amd64.deb
dpkg --purge libicu57
dpkg -i libicu57*.deb
dpkg -l | grep libicu57 | awk '{print $1,$2}'
apt install -f


Code: Select all
root@miniServer:/# dpkg --purge libicu57
dpkg: dependency problems prevent removal of libicu57:amd64:
 postfix depends on libicu57 (>= 57.1-1~).
 php7.2-intl depends on libicu57 (>= 57.1-1~).
 libxml2:amd64 depends on libicu57 (>= 57.1-1~).

dpkg: error processing package libicu57:amd64 (--purge):
 dependency problems - not removing
Errors were encountered while processing:
 libicu57:amd64
alma359
 
Posts: 15
Joined: 2019-10-21 21:53

Re: when running apt-get upgrade my computer reboots

Postby L_V » 2019-10-24 15:01

Try again like this :
Code: Select all
dpkg --purge  --force-remove-reinstreq  libicu57

If OK, continue. No need of new wget if /tmp/libicu57_57.1-6+deb9u3_amd64.deb already there.
Code: Select all
cd /tmp
wget http://ftp.uni-sofia.bg/debian/pool/main/i/icu/libicu57_57.1-6+deb9u3_amd64.deb

dpkg -i libicu57*.deb
dpkg -l | grep libicu57 | awk '{print $1,$2}'
apt install -f

+ do you remember why you earlier put libicu57 on hold status ????
L_V
 
Posts: 1126
Joined: 2007-03-19 09:04

Re: when running apt-get upgrade my computer reboots

Postby alma359 » 2019-10-24 16:12

Code: Select all
dpkg --purge --force-remove-reinstreq libicu57

gets the same output as before.
libicu57 is on hold to prevent it from upgrading right? But it is not working. I tried with unhold too - same dependency errors.

I also tried deleting the available and status files and info directory from var/lib/dpkg, after this I ran dpkg --configure -a, and reinstalled some packages but when it reached libicu57 unpacking, i got a reboot again... now i restored the old files (I made a backup earlier)
alma359
 
Posts: 15
Joined: 2019-10-21 21:53

Re: when running apt-get upgrade my computer reboots

Postby L_V » 2019-10-24 17:45

alma359 wrote:libicu57 is on hold to prevent it from upgrading right?)
The system did not put it on hold: you did it ! The question was why ?
Now you have played with dpkg files, I am sorry to not be able to make a new exact status and detect new inconsistencies.
Hope a courageous one can help you now to start again investigations.

..... buster is the stable release ....
L_V
 
Posts: 1126
Joined: 2007-03-19 09:04

Re: when running apt-get upgrade my computer reboots

Postby reinob » 2019-10-25 19:11

L_V wrote:
alma359 wrote:libicu57 is on hold to prevent it from upgrading right?)
The system did not put it on hold: you did it ! The question was why ?


I told him (here: viewtopic.php?f=10&t=144021#p709605) to put it on hold to test if upgrading the rest of packages would work or not, i.e. to determine whether the problem is (directly or indirectly) caused by libicu57.

Now you have played with dpkg files, I am sorry to not be able to make a new exact status and detect new inconsistencies.
Hope a courageous one can help you now to start again investigations.

..... buster is the stable release ....


I've read the latest posts now (big thanks to you for being so diligent!), but I'm out of ideas. Either it's a hardware issue, or the package database (or the .deb's themselves) are somehow corrupted. Maybe it's just a bad mirror, but it would be the first time I hear about such a thing.

In any case, good luck to @alma359 (maybe a reinstall would be in order? :)
reinob
 
Posts: 742
Joined: 2014-06-30 11:42

PreviousNext

Return to General Questions

Who is online

Users browsing this forum: No registered users and 11 guests

fashionable