Re: Raspberry Pi Debian after upgrade Bullseye => Bookworm -- problem Setting up ca-certificates-java

2023-06-22 Thread Rick Thomas
That seems to have worked (I think)...

On Thu, Jun 22, 2023, at 7:34 AM, Andrew M.A. Cater wrote:
 snip 
> It might be worth looking at precisely what is not installed / removed
> dpkg -C will give you what needs configuring if anything, I think.
>
> I had a similar experience with upgrading Debian WSL - in the end, I 
> found that temporarily removing default-jre-?? helped.
>
> That allowed me to upgrade the system and then to reinstall the JRE.
>
> I think the versions of the Java runtime environment have changed very
> significantly, hence the problem.

What I did was run "dpkg -C" to get a list of problematical packages, which I 
then purged.
aptitude -PVv  purge default-jre openjdk-17-jre:arm64 
openjdk-17-jre-headless
I saved the list of all packages being removed (including several not in the 
original list but removed for dependency reasons).

The purge ran without incident.  I was then able to do "apt-get upgrade" which 
ran to completion without complaint.

I then re-installed all the packages that had previously been removed.  This 
ran without incident, as did "apt-get upgrade" following.

I believe the only thing I've lost at this point is knowledge of which of the 
re-installed packages were originally "auto-installed" due to depends or 
recommends .

I hope this report helps the next person with this kind of problem.  I know I 
learned a lot!

Thanks very much to Andy, Jeff and Sven for all their help!
Rick





Re: Raspberry Pi Debian after upgrade Bullseye => Bookworm -- problem Setting up ca-certificates-java

2023-06-22 Thread Jeffrey Walton
On Thu, Jun 22, 2023 at 10:45 PM Rick Thomas  wrote:
>
> That seems to have worked (I think)...
>
> On Thu, Jun 22, 2023, at 7:34 AM, Andrew M.A. Cater wrote:
>  snip 
> > It might be worth looking at precisely what is not installed / removed
> > dpkg -C will give you what needs configuring if anything, I think.
> >
> > I had a similar experience with upgrading Debian WSL - in the end, I
> > found that temporarily removing default-jre-?? helped.
> >
> > That allowed me to upgrade the system and then to reinstall the JRE.
> >
> > I think the versions of the Java runtime environment have changed very
> > significantly, hence the problem.
>
> What I did was run "dpkg -C" to get a list of problematical packages, which I 
> then purged.
> aptitude -PVv  purge default-jre openjdk-17-jre:arm64 
> openjdk-17-jre-headless
> I saved the list of all packages being removed (including several not in the 
> original list but removed for dependency reasons).
>
> The purge ran without incident.  I was then able to do "apt-get upgrade" 
> which ran to completion without complaint.
>
> I then re-installed all the packages that had previously been removed.  This 
> ran without incident, as did "apt-get upgrade" following.
>
> I believe the only thing I've lost at this point is knowledge of which of the 
> re-installed packages were originally "auto-installed" due to depends or 
> recommends .
>
> I hope this report helps the next person with this kind of problem.  I know I 
> learned a lot!
>
> Thanks very much to Andy, Jeff and Sven for all their help!

Aptitude is a nice command. Its solver can often find upgrade paths
when Apt and Apt-get cannot.

I usually run aptitude like below. It can update Debian, Mint and
Ubuntu systems.

DEBIAN_FRONTEND=noninteractive
aptitude update && aptitude upgrade -y && \
aptitude safe-upgrade -y && aptitude full-upgrade -y

I've never had a problem with it. (Knock on wood).

Jeff



Re: Raspberry Pi Debian after upgrade Bullseye => Bookworm -- problem Setting up ca-certificates-java

2023-06-22 Thread Sven Joachim
On 2023-06-22 03:12 -0700, Rick Thomas wrote:

> On Thu, Jun 22, 2023, at 12:04 AM, Jeffrey Walton wrote:
>> On Thu, Jun 22, 2023 at 2:49 AM Rick Thomas  wrote:
>  snip 
>>> In this case, the package is already installed.
>>> Unfortunately when I try to reinstall it, I get:
>>>
>>> rbthomas@pi:~$ sudo -i  apt-get install --reinstall ca-certificates-java
>>> Reading package lists... Done
>>> Building dependency tree... Done
>>> Reading state information... Done
>>> 0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not 
>>> upgraded.
>>> 4 not fully installed or removed.
>>> After this operation, 0 B of additional disk space will be used.
>>> E: Internal Error, No file name for ca-certificates-java:arm64
>>> rbthomas@pi:~$
>>>
>>> Any idea that that even means?
>>
>> I would probably try this next:
>> sudo apt-get -f install && sudo dpkg -a --configure
>> If that doesn't help, then I am out of ideas.
>
> Sadly, that didn't work.
> Do you (or anyone else on the list) have any idea what this message means?
> "E: Internal Error, No file name for ca-certificates-java:arm64"

It is the apt way of saying "this package cannot be reinstalled, because
it is not fully installed in the first place" (since it failed to
configure).

See https://bugs.debian.org/670920 and its siblings.

> In particular, what directory might contain the file
> ca-certificates-java:arm64.

None, because that is a package name and not a file.

> And what does "no filename for..." mean in this context?

You probably have to ask the apt developers.  I would like to know that
as well.

Cheers,
   Sven



Re: Raspberry Pi Debian after upgrade Bullseye => Bookworm -- problem Setting up ca-certificates-java

2023-06-22 Thread Andrew M.A. Cater
On Thu, Jun 22, 2023 at 03:12:16AM -0700, Rick Thomas wrote:
> Thanks, Jeff!
> 
> On Thu, Jun 22, 2023, at 12:04 AM, Jeffrey Walton wrote:
> > On Thu, Jun 22, 2023 at 2:49 AM Rick Thomas  wrote:
>  snip 
> >> In this case, the package is already installed.
> >> Unfortunately when I try to reinstall it, I get:
> >>
> >> rbthomas@pi:~$ sudo -i  apt-get install --reinstall ca-certificates-java
> >> Reading package lists... Done
> >> Building dependency tree... Done
> >> Reading state information... Done
> >> 0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not 
> >> upgraded.
> >> 4 not fully installed or removed.

It might be worth looking at precisely what is not installed / removed
dpkg -C will give you what needs configuring if anything, I think.

I had a similar experience with upgrading Debian WSL - in the end, I found that 
temporarily removing default-jre-?? helped.

That allowed me to upgrade the system and then to reinstall the JRE.

I think the versions of the Java runtime environment have changed very
significantly, hence the problem.

Just my 0,02

All the very best, as ever,

Andy

> >> Any idea that that even means?
> 
> Thanks!
> Rick
> 



Re: Raspberry Pi Debian after upgrade Bullseye => Bookworm -- problem Setting up ca-certificates-java

2023-06-22 Thread Rick Thomas
Thanks, Jeff!

On Thu, Jun 22, 2023, at 12:04 AM, Jeffrey Walton wrote:
> On Thu, Jun 22, 2023 at 2:49 AM Rick Thomas  wrote:
 snip 
>> In this case, the package is already installed.
>> Unfortunately when I try to reinstall it, I get:
>>
>> rbthomas@pi:~$ sudo -i  apt-get install --reinstall ca-certificates-java
>> Reading package lists... Done
>> Building dependency tree... Done
>> Reading state information... Done
>> 0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
>> 4 not fully installed or removed.
>> After this operation, 0 B of additional disk space will be used.
>> E: Internal Error, No file name for ca-certificates-java:arm64
>> rbthomas@pi:~$
>>
>> Any idea that that even means?
>
> I would probably try this next:
> sudo apt-get -f install && sudo dpkg -a --configure
> If that doesn't help, then I am out of ideas.

Sadly, that didn't work.
Do you (or anyone else on the list) have any idea what this message means?
"E: Internal Error, No file name for ca-certificates-java:arm64"

In particular, what directory might contain the file 
ca-certificates-java:arm64. And what does "no filename for..." mean in this 
context?

Thanks!
Rick



Re: Raspberry Pi Debian after upgrade Bullseye => Bookworm -- problem Setting up ca-certificates-java

2023-06-22 Thread Rick Thomas



On Wed, Jun 21, 2023, at 9:21 PM, Jeffrey Walton wrote:
> On Thu, Jun 22, 2023 at 12:15 AM Rick Thomas  wrote:
>>
>> I have a Raspberry Pi that is running Debian (*not* Raspbian) that I just 
>> upgraded from Bullseye => Bookworm.
>>
>> Following the upgrade whenever I try to install the latest upgrades, I get 
>> errors (see attached transcript).
>>
>> Can anybody see what I've done wrong?  Or what I can do to fix it?
>>
>> I'm not a java user myself, though I suspect there are java programs are 
>> used by programs that I use at the command-line level.   Would it be 
>> possible to simply "purge" the affected packages?
>>
>> Thanks for any help you can give me to get this machine back in operation!
>
> The first command I would run is:
>
>apt-get install ca-certificates-java
>
> If the package is already installed (I can't tell; it looks like
> install may have failed), then:
>
>apt-get install --reinstall ca-certificates-java
>
> If apt-get fails, then I would move on to dpkg.
>
> Jeff

Thanks, Jeff!
In this case, the package is already installed.
Unfortunately when I try to reinstall it, I get:

rbthomas@pi:~$ sudo -i  apt-get install --reinstall ca-certificates-java
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
4 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
E: Internal Error, No file name for ca-certificates-java:arm64
rbthomas@pi:~$ 

Any idea that that even means?

Thanks!
Rick



Re: Raspberry Pi Debian after upgrade Bullseye => Bookworm -- problem Setting up ca-certificates-java

2023-06-22 Thread Jeffrey Walton
On Thu, Jun 22, 2023 at 2:49 AM Rick Thomas  wrote:
>
> On Wed, Jun 21, 2023, at 9:21 PM, Jeffrey Walton wrote:
> > On Thu, Jun 22, 2023 at 12:15 AM Rick Thomas  wrote:
> >>
> >> I have a Raspberry Pi that is running Debian (*not* Raspbian) that I just 
> >> upgraded from Bullseye => Bookworm.
> >>
> >> Following the upgrade whenever I try to install the latest upgrades, I get 
> >> errors (see attached transcript).
> >>
> >> Can anybody see what I've done wrong?  Or what I can do to fix it?
> >>
> >> I'm not a java user myself, though I suspect there are java programs are 
> >> used by programs that I use at the command-line level.   Would it be 
> >> possible to simply "purge" the affected packages?
> >>
> >> Thanks for any help you can give me to get this machine back in operation!
> >
> > The first command I would run is:
> >
> >apt-get install ca-certificates-java
> >
> > If the package is already installed (I can't tell; it looks like
> > install may have failed), then:
> >
> >apt-get install --reinstall ca-certificates-java
> >
> > If apt-get fails, then I would move on to dpkg.
>
> Thanks, Jeff!
> In this case, the package is already installed.
> Unfortunately when I try to reinstall it, I get:
>
> rbthomas@pi:~$ sudo -i  apt-get install --reinstall ca-certificates-java
> Reading package lists... Done
> Building dependency tree... Done
> Reading state information... Done
> 0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
> 4 not fully installed or removed.
> After this operation, 0 B of additional disk space will be used.
> E: Internal Error, No file name for ca-certificates-java:arm64
> rbthomas@pi:~$
>
> Any idea that that even means?

I would probably try this next:

sudo apt-get -f install && sudo dpkg -a --configure

If that doesn't help, then I am out of ideas.

Jeff



Re: Raspberry Pi Debian after upgrade Bullseye => Bookworm -- problem Setting up ca-certificates-java

2023-06-21 Thread Jeffrey Walton
On Thu, Jun 22, 2023 at 12:15 AM Rick Thomas  wrote:
>
> I have a Raspberry Pi that is running Debian (*not* Raspbian) that I just 
> upgraded from Bullseye => Bookworm.
>
> Following the upgrade whenever I try to install the latest upgrades, I get 
> errors (see attached transcript).
>
> Can anybody see what I've done wrong?  Or what I can do to fix it?
>
> I'm not a java user myself, though I suspect there are java programs are used 
> by programs that I use at the command-line level.   Would it be possible to 
> simply "purge" the affected packages?
>
> Thanks for any help you can give me to get this machine back in operation!

The first command I would run is:

   apt-get install ca-certificates-java

If the package is already installed (I can't tell; it looks like
install may have failed), then:

   apt-get install --reinstall ca-certificates-java

If apt-get fails, then I would move on to dpkg.

Jeff



Raspberry Pi Debian after upgrade Bullseye => Bookworm -- problem Setting up ca-certificates-java

2023-06-21 Thread Rick Thomas
I have a Raspberry Pi that is running Debian (*not* Raspbian) that I just 
upgraded from Bullseye => Bookworm.

Following the upgrade whenever I try to install the latest upgrades, I get 
errors (see attached transcript).

Can anybody see what I've done wrong?  Or what I can do to fix it?

I'm not a java user myself, though I suspect there are java programs are used 
by programs that I use at the command-line level.   Would it be possible to 
simply "purge" the affected packages?

Thanks for any help you can give me to get this machine back in operation!

Rick

transcript
Description: Binary data