Re: [Dorset] Problems Installing Package on Raspberry Pi
On 26/04/2024 13:06, Ralph Corderoy wrote: Still the same, as in I still have the following directories and files: strongswan.conf ... Yes. Or still the same complaining about the corrupt \xFF in what should be a text file of Perl source code? That too. Whilst the corruption exists, most bets are off and trying more things risks worsening the corruption. If it's a Pi's SD card, start afresh? I was coming round to that way of thinking. I do have a backup of an earlier SD Card, so I may start with that, before I completely reformat and re-install Raspberry Pi OS and all the associated configurations. Thanks for your help. -- Terry Coles -- Next meeting: Online, Jitsi, Tuesday, 2024-05-07 20:00 Check to whom you are replying Meetings, mailing list, IRC, ... http://dorset.lug.org.uk New thread, don't hijack: mailto:dorset@mailman.lug.org.uk
Re: [Dorset] Problems Installing Package on Raspberry Pi
Hi Terry, > > sudo -i apt-get purge --auto-remove strongswan > > I tried that, it's still the same Still the same, as in I still have the following directories and files: strongswan.conf ... Or still the same complaining about the corrupt \xFF in what should be a text file of Perl source code? Whilst the corruption exists, most bets are off and trying more things risks worsening the corruption. If it's a Pi's SD card, start afresh? -- Cheers, Ralph. -- Next meeting: Online, Jitsi, Tuesday, 2024-05-07 20:00 Check to whom you are replying Meetings, mailing list, IRC, ... http://dorset.lug.org.uk New thread, don't hijack: mailto:dorset@mailman.lug.org.uk
Re: [Dorset] Problems Installing Package on Raspberry Pi
On 26/04/2024 12:59, Terry Coles wrote: Is there a way to repair this? I tried: sudo apt install strongswan --fix-broken but that didn't work. -- Terry Coles -- Next meeting: Online, Jitsi, Tuesday, 2024-05-07 20:00 Check to whom you are replying Meetings, mailing list, IRC, ... http://dorset.lug.org.uk New thread, don't hijack: mailto:dorset@mailman.lug.org.uk
Re: [Dorset] Problems Installing Package on Raspberry Pi
Hi Terry, > sed -n 'l; /^}/q' /usr/share/perl5/Debconf/AutoSelect.pm > \377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\ > \377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\ > \377\377\377\377\377\37.. > > Screen-fulls of that. The file is corrupt. 377 is octal for 255, i.e. the file starts with bytes of FF in hexadecimal. This is typical of an erased sector of non-volatile memory. Check the disk media in some way, then the filesystem's meta data, and if all of that's well then it's probably just the bytes in some files which are corrupt. debsums(1) can help there. sudo -i debsums -s -- Cheers, Ralph. -- Next meeting: Online, Jitsi, Tuesday, 2024-05-07 20:00 Check to whom you are replying Meetings, mailing list, IRC, ... http://dorset.lug.org.uk New thread, don't hijack: mailto:dorset@mailman.lug.org.uk
Re: [Dorset] Problems Installing Package on Raspberry Pi
This should have gone to the list instead of direct to Ralph.On 26/04/2024 12:47, Ralph Corderoy wrote: You're using APT which understands dependencies between packages. With dpkg(1), you're ducking under APT and fiddling with things without its knowledge, breaking its assumptions. I'd use sudo -i apt-get purge --auto-remove strongswan I tried that, it's still the same, so presumably the damage is done. Is there a way to repair this? -- Terry Coles -- Next meeting: Online, Jitsi, Tuesday, 2024-05-07 20:00 Check to whom you are replying Meetings, mailing list, IRC, ... http://dorset.lug.org.uk New thread, don't hijack: mailto:dorset@mailman.lug.org.uk
Re: [Dorset] Problems Installing Package on Raspberry Pi
This should have gone to the list instead of direct to Ralph. On 26/04/2024 12:43, Ralph Corderoy wrote: What's the output of sed -n 'l; /^}/q' /usr/share/perl5/Debconf/AutoSelect.pm For example, $ sed -n 'l; /^}/q' /usr/share/perl5/Debconf/AutoSelect.pm #!/usr/bin/perl -w$ # This file was preprocessed, do not edit!$ $ $ package Debconf::AutoSelect;$ use strict;$ use Debconf::Gettext;$ use Debconf::ConfModule;$ use Debconf::Config;$ use Debconf::Log qw(:all);$ use base qw(Exporter);$ our @EXPORT_OK = qw(make_frontend make_confmodule);$ our %EXPORT_TAGS = (all => [@EXPORT_OK]);$ $ BEGIN {$ \teval {$ \t\trequire Glib::Object::Introspection;$ \t};$ }$ $ Nothing like that: sed -n 'l; /^}/q' /usr/share/perl5/Debconf/AutoSelect.pm \377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\ \377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\ \377\377\377\377\377\37.. Screen-fulls of that. -- Terry Coles -- Next meeting: Online, Jitsi, Tuesday, 2024-05-07 20:00 Check to whom you are replying Meetings, mailing list, IRC, ... http://dorset.lug.org.uk New thread, don't hijack: mailto:dorset@mailman.lug.org.uk
Re: [Dorset] Problems Installing Package on Raspberry Pi
Hi Terry, > I've found something odd. I believed that this command: > > sudo dpkg --purge --force-all strongswan > > Should remove everything related to the package strongswan. From dpkg(1): --force-things --no-force-things, --refuse-things ... Warning: These options are mostly intended to be used by experts only. Using them without fully understanding their effects may break your whole system. You're using APT which understands dependencies between packages. With dpkg(1), you're ducking under APT and fiddling with things without its knowledge, breaking its assumptions. I'd use sudo -i apt-get purge --auto-remove strongswan -- Cheers, Ralph. -- Next meeting: Online, Jitsi, Tuesday, 2024-05-07 20:00 Check to whom you are replying Meetings, mailing list, IRC, ... http://dorset.lug.org.uk New thread, don't hijack: mailto:dorset@mailman.lug.org.uk
Re: [Dorset] Problems Installing Package on Raspberry Pi
Hi Terry, > debconf: Perl may be unconfigured (Unrecognized character \xFF; > marked by <-- HERE after <-- HERE near column 1 at > /usr/share/perl5/Debconf/AutoSelect.pm line 1. What's the output of sed -n 'l; /^}/q' /usr/share/perl5/Debconf/AutoSelect.pm For example, $ sed -n 'l; /^}/q' /usr/share/perl5/Debconf/AutoSelect.pm #!/usr/bin/perl -w$ # This file was preprocessed, do not edit!$ $ $ package Debconf::AutoSelect;$ use strict;$ use Debconf::Gettext;$ use Debconf::ConfModule;$ use Debconf::Config;$ use Debconf::Log qw(:all);$ use base qw(Exporter);$ our @EXPORT_OK = qw(make_frontend make_confmodule);$ our %EXPORT_TAGS = (all => [@EXPORT_OK]);$ $ BEGIN {$ \teval {$ \t\trequire Glib::Object::Introspection;$ \t};$ }$ $ -- Cheers, Ralph. -- Next meeting: Online, Jitsi, Tuesday, 2024-05-07 20:00 Check to whom you are replying Meetings, mailing list, IRC, ... http://dorset.lug.org.uk New thread, don't hijack: mailto:dorset@mailman.lug.org.uk
Re: [Dorset] Problems Installing Package on Raspberry Pi
On 26/04/2024 12:19, Terry Coles wrote: I've trawled the Internet and found various solutions, none of which work. These included using dpkg to purge strongswan, strongswan-charon and strongswan-starter, before trying to install strongswan again. I've found something odd. I believed that this command: sudo dpkg --purge --force-all strongswan Should remove everything related to the package strongswan. It would appear that this is not the case, because I still have the following directories and files: strongswan.conf strongswan.d swanctl and swanctl is full of directories, which are in turn full of there directories and files. What am I missing? -- Terry Coles -- Next meeting: Online, Jitsi, Tuesday, 2024-05-07 20:00 Check to whom you are replying Meetings, mailing list, IRC, ... http://dorset.lug.org.uk New thread, don't hijack: mailto:dorset@mailman.lug.org.uk