• Re: upgrade to bookworm causes breakage

    From Greg Wooledge@21:1/5 to Bob Mroczka on Tue Aug 20 01:10:01 2024
    On Mon, Aug 19, 2024 at 17:33:13 -0500, 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.

    I'm not going to read that web site. I'll just assume it's correct.

    What kind of computer are you using?

    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.

    My first thought when I saw that error message was that you've got a
    corrupted gzip .deb file. But if *everything* is segfaulting, then
    you've either got a corrupted libc or kernel, or your computer isn't
    supported by Bookworm.

    Your error message shows you're using amd64, so my second guess (that
    you're on one of the Pentium-era i386 CPUs which has been obsoleted)
    is also wrong. I don't know if any specific amd64 CPUs are obsoleted,
    but if you post your hardware specs, maybe someone will know more.

    If it's not a hardware compatibility issue, then I'm back to "corrupted
    file" as the primary guess.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Mike@21:1/5 to Bob Mroczka on Tue Aug 20 01:30:01 2024
    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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Gary Dale@21:1/5 to Mike on Tue Aug 20 02:30:01 2024
    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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From David Christensen@21:1/5 to Bob Mroczka on Tue Aug 20 06:00:01 2024
    On 8/19/24 15:33, Bob Mroczka wrote:
    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.

    <snip>


    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.


    David

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From David Wright@21:1/5 to Gary Dale on Tue Aug 20 07:10:02 2024
    On Mon 19 Aug 2024 at 20:26:35 (-0400), Gary Dale wrote:
    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.

    It might be worth looking for any corruption with:

    # cd /
    # md5sum -c /var/lib/dpkg/info/{dpkg,gzip,tar}.md5sums

    Or use a sledgehammer and check the whole lot:

    # md5sum -c /var/lib/dpkg/info/*.md5sums | grep -v ': OK$'

    though expect some output from such things as diversions and some
    empty foo.md5sums files. (I'm assuming that debsums hasn't been
    installed.)

    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.

    To be fair, the long version (rather than the summary at the top)
    does suggest this, and adds one reason for using an editor for this
    particular upgrade: the addition of non-free-firmware.

    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.

    This step (which is labelled step 4 in the long version¹) corresponds
    to §4.4.5 Minimal system upgrade in the bookworm Release Notes,
    so like it or not, it's official.

    ¹ Step 4 in the summary is the last action in the long version's step 3.

    Cheers,
    David.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From songbird@21:1/5 to David Christensen on Tue Aug 20 13:00:02 2024
    David Christensen wrote:
    ...
    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.

    this varies so much depending upon how many legacy systems
    you have in place that will need to be verified - but otherwise
    i completely agree.

    the amount of changes that i can apply through the years that
    i may not document anyplace can become a problem for others
    later so to me doing a completely fresh install is worth the
    reminder that i'm doing something wrong and that they should
    all be either removed or documented properly.

    doing a fresh install gets rid of a lot of packages i may
    no longer be using and their configuration files that could
    also be hanging around. i try to review my package list once
    in awhile and remove those i don't need.

    another thing that is useful to review from time to time is
    my scripting include files so that i don't have aliases or
    other things in there i'm not using any longer.


    songbird

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)