Hello,
I'm Hans-Werner an running multiple PIs. After upgrading two of them
Raspbian from Buster to Bullseye one is good and the other is not so
good. Good is RPi 1 B, Minimal Installation.
Not so good is Raspberry Pi 2 Model B Rev 1.1, Rasbian Desktop
Problem:
dpkg: Fehler beim Bearbeiten des Archivs /var/cache/apt/archive/libxcb1_1.14-3_armhf.deb (--unpack):
ci-Triggerdatei enthält unbekannte Anweisung »This« "-> ci-triggerfile
contains unknown instruction »This«"
Fehler traten auf beim Bearbeiten von:
/var/cache/apt/archives/libxcb1_1.14-3_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
How do I do the update:
1. Starting buster, apt update && apt upgrade -y, dpkg --audit, apt autoremove -y && apt autoclean 2. Change /etc/apt/sources.list to deb http://raspbian.raspberrypi.org/raspbian/ bullseye main contrib non-free
rpi 3. Change /etc/apt/sources.list.d/raspi.list to deb http://archive.raspberrypi.org/debian/ bullseye main 4. Did apt update,
apt upgrade -y, apt full-upgrade -y
Upgrade on the 1s Pi runs without any problems. On the 2nd I have
multiple issues and solved the problem away with apt install -f, apt
upgrade -y/apt full-upgrade -y. It was always the ci-triggerfile
contains unknown instruction »This«" problem.
Some suggestions what I have done wrong and how to fix?
how did you 'Upgrade'
doing an in-place upgrade over an existing installation is not
recommended (which is a pain as creating a new SD card will overwrite
your home directory - not good)
best I have come up with so far is to backup /home/pi before recreating
the card & then copy it back (ensure you get all the hidden files)
you also need to re-install any extra software beyond the std install
how did you 'Upgrade'
doing an in-place upgrade over an existing installation is not recommended (which is a pain as creating a new SD card will overwrite your home
directory - not good)
best I have come up with so far is to backup /home/pi before recreating
the card & then copy it back (ensure you get all the hidden files)
you also need to re-install any extra software beyond the std install
how did you 'Upgrade'
doing an in-place upgrade over an existing installation is not recommended (which is a pain as creating a new SD card will overwrite your home
directory - not good)
best I have come up with so far is to backup /home/pi before recreating
the card & then copy it back (ensure you get all the hidden files)
you also need to re-install any extra software beyond the std install
Low level the entire card so you have an exact backup, just in case,I have done a image backup b4. After firs fail I have reloaded the Image
then do the upgrade in place.
I have done a image backup b4. After first fail I have reloaded the
Image an done a 2nd try -> same result.
It seems something is wrong with my desktop installation, but don't know what. Until now I have done 2 other updates in same way with the
buster-light version -> no problems.
Am 11.11.21 um 21:45 schrieb druck:
Low level the entire card so you have an exact backup, just in case,
then do the upgrade in place.
I have done a image backup b4. After firs fail I have reloaded the Image
an done a 2nd try -> same result.
It seems something is wrong with my desktop installation, but don't know what. Until now I have done 2 other updates in same way with the
buster-light version -> no problems.
As it is we don't know:
- if you made the backup with dd, rsnapshot, rsync, gzip, or whatever
- what device the image is on
- how its partitioned
- why the backup failed, i.e. what error messages you saw.
Have you done a apt full-upgrade wit the current version before changing apt.conf ?
I'm Hans-Werner an running multiple PIs. After upgrading two of them
Raspbian from Buster to Bullseye one is good and the other is not so
good.
Good is RPi 1 B, Minimal Installation.
Not so good is Raspberry Pi 2 Model B Rev 1.1, Rasbian Desktop
Problem:
dpkg: Fehler beim Bearbeiten des Archivs /var/cache/apt/archive/libxcb1_1.14-3_armhf.deb (--unpack):
ci-Triggerdatei enthält unbekannte Anweisung »This«
"-> ci-triggerfile contains unknown instruction »This«"
Fehler traten auf beim Bearbeiten von:
/var/cache/apt/archives/libxcb1_1.14-3_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Some suggestions what I have done wrong and how to fix?
Am 12.11.21 um 18:25 schrieb druck:
Have you done a apt full-upgrade wit the current version before
changing apt.conf ?
no because Apt did not say that there are some packages hold or now or
have to be updated.
On 13/11/2021 05:58, Hans-Werner Kneitinger wrote:
Am 12.11.21 um 18:25 schrieb druck:
Have you done a apt full-upgrade wit the current version before
changing apt.conf ?
no because Apt did not say that there are some packages hold or now or
have to be updated.
The only issues I've had upgrading on non-pi Linux systems (a Kbuntu
VM), is when the package system has been in unstable state.
This command often shows up problems.
dpkg --configure -a
The debsums program is useful to find packages which may be corrupted or
have missing files, use:-
apt install debsums debsums -c | xargs -rd '\n' -- dpkg -S | cut -d : -f
1 | sort -u
If you've got any problems this will fix it by reinstalling the packages
debsums -c | xargs -rd '\n' -- dpkg -S | cut -d : -f 1 | sort -u | xargs
-rd '\n' -- apt-get install --reinstall
---druck
Any suggestions for a fast way to re-establish access it via SSH would
be appreciated. Its so long since I enabled SSH access in the first
place that I've forgotten how I did that.
Grrrr. I'd really expect that the one thing an OS upgrade would NOT do
is to mess with SSH access
On Sat, 13 Nov 2021 21:34:32 -0000 (UTC), Martin Gregorie wrote:
Any suggestions for a fast way to re-establish access it via SSH would
be appreciated. Its so long since I enabled SSH access in the first
place that I've forgotten how I did that.
Grrrr. I'd really expect that the one thing an OS upgrade would NOT do
is to mess with SSH access
LATER....
I'm now assuming that somehow I've managed to disable the sshd.service,
so have spent most of this evening trying unsuccessfully to find out
where systemd stores service-level information, such as whether
sshd.service is enabled, with the aim of sticking the RPi's SD card into
my Fedora-based laptop and editing it to set any flags needed to mark the sshd.service as 'enabled', etc.
Unfortunately, I don't have a USB keyboard, though I do have a Benq
screen with HDMI input, which is why I'm looking at ways of editing the
SD card contents to resurrect SSH logins.
The main problem is that I can't find any documentation that says where
such service-level configuration data is kept. I'd hoped that
https://www.freedesktop.org/software/systemd/man/systemd.path.html
would help here, but while its good on telling you how to use systemd
tools to do things, its not all useful for describing where systemd
stores its configuration data, which is what I need.
Any pointers to better, comprehensive systemd documentation, particularly anything describing where it keeps added control data such as whether a service is enabled and/or running would be most welcome.
Still, if all else fails, I do have an up-to-date backup of the RPi. Everything I need off it is in /home/* and /usr/local/* - that is, if
doing a clean install Bullseye install will leave SSH logins enabled by default so I can SSH into the RPi and restore the contents of /home* and / usr/local/* from the backup.
On 14.11.21 3.21, Martin Gregorie wrote:
On Sat, 13 Nov 2021 21:34:32 -0000 (UTC), Martin Gregorie wrote:
Any suggestions for a fast way to re-establish access it via SSH wouldLATER....
be appreciated. Its so long since I enabled SSH access in the first
place that I've forgotten how I did that.
Grrrr. I'd really expect that the one thing an OS upgrade would NOT do
is to mess with SSH access
I'm now assuming that somehow I've managed to disable the sshd.service,
so have spent most of this evening trying unsuccessfully to find out
where systemd stores service-level information, such as whether
sshd.service is enabled, with the aim of sticking the RPi's SD card
into my Fedora-based laptop and editing it to set any flags needed to
mark the sshd.service as 'enabled', etc.
Unfortunately, I don't have a USB keyboard, though I do have a Benq
screen with HDMI input, which is why I'm looking at ways of editing the
SD card contents to resurrect SSH logins.
The main problem is that I can't find any documentation that says where
such service-level configuration data is kept. I'd hoped that
https://www.freedesktop.org/software/systemd/man/systemd.path.html
would help here, but while its good on telling you how to use systemd
tools to do things, its not all useful for describing where systemd
stores its configuration data, which is what I need.
Any pointers to better, comprehensive systemd documentation,
particularly anything describing where it keeps added control data such
as whether a service is enabled and/or running would be most welcome.
Still, if all else fails, I do have an up-to-date backup of the RPi.
Everything I need off it is in /home/* and /usr/local/* - that is, if
doing a clean install Bullseye install will leave SSH logins enabled by
default so I can SSH into the RPi and restore the contents of /home*
and /
usr/local/* from the backup.
Set up a zero-length file with the name 'ssh' on the /boot partition.
The partition can be accessed on the card from Mac OS or Windows, as
well as from any Linux, as the partition is in FAT format.
Silly question perhaps... Presuming the R-Pi in question is using WiFi,
could your WiFi/router be blocking it?
I found that too, when I searched this morning, but thanks anyway.
However, it is only a very partial solution, because where nmap
previously thought the RPi doesn't exist, now it agrees that the RPi is
on my LAN, but says all the 1000 ports that it scanned are masked, i.e.
none are open. And, of course, I still can't ssh into it.
This command often shows up problems.
dpkg --configure -a
The debsums program is useful to find packages which may be corrupted orDone, rkhunter was reported.
have missing files, use:-
apt install debsums
debsums -c | xargs -rd '\n' -- dpkg -S | cut -d : -f 1 | sort -u
If you've got any problems this will fix it by reinstalling the packages
debsums -c | xargs -rd '\n' -- dpkg -S | cut -d : -f 1 | sort -u | xargsDone, seems to be repaired. No erros reorted when doing the command above.
-rd '\n' -- apt-get install --reinstall
Am 13.11.21 um 14:05 schrieb druck:
This command often shows up problems.
dpkg --configure -a
Done, No messages.
The debsums program is useful to find packages which may beDone, rkhunter was reported.
corrupted or have missing files, use:-
apt install debsums
debsums -c | xargs -rd '\n' -- dpkg -S | cut -d : -f 1 | sort -u
If you've got any problems this will fix it by reinstalling the packages
debsums -c | xargs -rd '\n' -- dpkg -S | cut -d : -f 1 | sort -u |Done, seems to be repaired. No erros reorted when doing the command above.
xargs -rd '\n' -- apt-get install --reinstall
Doing apt update && apt ugrade -y
---
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
1 package can be upgraded. Run 'apt list --upgradable' to see it.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
libxcb1
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/136 kB of archives.
After this operation, 10.2 kB of additional disk space will be used.
(Reading database ... 213580 files and directories currently installed.) Preparing to unpack .../libxcb1_1.14-3_armhf.deb ...
dpkg: error processing archive /var/cache/apt/archives/libxcb1_1.14-3_armhf.deb (--unpack):
triggers ci file contains unknown directive 'This'
Errors were encountered while processing:
/var/cache/apt/archives/libxcb1_1.14-3_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
---
My workaround for now is setting libxcb1 1.13.1-2 on hold with aptitude. Thanx for helping
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 371 |
Nodes: | 16 (2 / 14) |
Uptime: | 37:35:56 |
Calls: | 7,932 |
Calls today: | 2 |
Files: | 12,998 |
Messages: | 5,805,631 |