I attempted to upgrade my system from debian 11 to 12 following the instructions provided at https://www.cyberciti.biz/faq/update-upgrade-debian-11-to-debian-12-bookworm.
dpkg -i gzip_1.12-1_amd64.deb
tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors
dpkg-deb: error: tar subprocess returned error exit status 2
dpkg: error processing archive gzip_1.12-1_amd64.deb (--install):
dpkg-deb --control subprocess returned error exit status 2
Segmentation fault
I attempted to run reportbug from the system but it segfaults after showing the list of related bugs.
I am unable to get a backtrace from gdb since gdb segfaults.
I attempted to upgrade my system from debian 11 to 12 following the instructions provided at https://www.cyberciti.biz/faq/update-upgrade-debian-11-to-debian-12-bookworm.
Do you have any suggestions for further identifying the cause of this
and/or resolving this without recovering from back up?
Bob Mroczka wrote:
I attempted to upgrade my system from debian 11 to 12 following theIn the future, consider using https://www.debian.org/release/stable/ and such. cyberciti.biz usually just copies content from elsewhere, to sell ads against it. It may not be authoritative.
instructions provided at
https://www.cyberciti.biz/faq/update-upgrade-debian-11-to-debian-12-bookworm.
Do you have any suggestions for further identifying the cause of thisMy only thought is that maybe, somehow, you're running a mix of incompatible libraries and executables, some upgraded and some not. You might go into `aptitude`, if it runs, and see what it thinks.
and/or resolving this without recovering from back up?
The "rescue" option on the Debian image may be able to help you mount and install a proper installation on your existing disks, since it runs its
own copy of Linux on a ramdisk. But it's been a long time since I've used it, so I forget the procedure.
Hello,
I attempted to upgrade my system from debian 11 to 12 following the instructions provided at https://www.cyberciti.biz/faq/update-upgrade-debian-11-to-debian-12-bookworm. I got to the point of executing the command at step 6 to do sudo apt full-upgrade. At this point my system is in a state where I'm having difficulty recovering from.
On 2024-08-19 19:24, Mike wrote:
Bob Mroczka wrote:
I attempted to upgrade my system from debian 11 to 12 following the instructions provided at https://www.cyberciti.biz/faq/update-upgrade-debian-11-to-debian-12-bookworm.In the future, consider using https://www.debian.org/release/stable/ and such. cyberciti.biz usually just copies content from elsewhere, to sell ads
against it. It may not be authoritative.
Do you have any suggestions for further identifying the cause of this and/or resolving this without recovering from back up?My only thought is that maybe, somehow, you're running a mix of incompatible
libraries and executables, some upgraded and some not. You might go into `aptitude`, if it runs, and see what it thinks.
The "rescue" option on the Debian image may be able to help you mount and install a proper installation on your existing disks, since it runs its
own copy of Linux on a ramdisk. But it's been a long time since I've used it, so I forget the procedure.
Further to Mike's suggestion, sometimes going back to apt-get instead
of apt can work.
Also, since the full-upgrade step has failed, you should be able to
reboot and try again. One of the kernels should be able to work.
However, you can also boot to a command prompt, which might be safer.
To fix dpkg, I suspect that it's the tar package that needs to be
fixed. That may just be a single binary that you can copy from another system.
Worst case scenario is to do a fresh install of bookworm. If your
/home is in a separate partition, that should be easy and safe. Just
don't let it reformat or erase /home. Use manual partitioning.
I personally don't like using sudo for everything. When I have more
than one command, I just do a sudo bash and run them as root.
Looking at the cybercit.biz article, it's doing some stuff that I find
a little strange. Step 3 should just ask you to run sed to replace
bullseye with bookworm - less chance for errors.
And I don't like step 5 at all. The difference between versions often includes packages being replaced. Upgrading without new packages seems
like asking for trouble.
I understand that in-place upgrading a FOSS computer over many years is
a source of pride for many people. I tried that, and it did not work
out for me. Since then, I have invested myself in fresh installs,
minimal sysadmin changes, thorough documentation, scripting, version
control, backup, restore, and multiple layers of redundancy. The
efforts are far more predictable and the results are far more reliable.
So, I suggest that you put a secure erased SSD into another computer
with no drives other than optical, do a fresh install of Bookworm, add software/ configure as desired, add disks, and migrate your data.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (3 / 13) |
Uptime: | 30:26:49 |
Calls: | 10,391 |
Calls today: | 2 |
Files: | 14,064 |
Messages: | 6,417,097 |