# (SOLVED) Upgrade to 9.12.1 to 9.13.2 Failed

**URL:** <https://dietpi.com/forum/t/solved-upgrade-to-9-12-1-to-9-13-2-failed/23621>\
**Category:** Troubleshooting\
**Created:** [11 June 2025 18:53 UTC](https://dietpi.com/forum/t/solved-upgrade-to-9-12-1-to-9-13-2-failed/23621 "2025-06-11T18:53:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nikos73](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/n/ecb155/32.png) [@nikos73](https://dietpi.com/forum/u/nikos73)\
**Post date:** [11 June 2025 18:53 UTC](https://dietpi.com/forum/t/solved-upgrade-to-9-12-1-to-9-13-2-failed/23621/1 "2025-06-11T18:53:38Z")

</div>

**Update: I had massive sd card corruption (still don’t know why). I reformatted the sd card and checked it repeatedly and it appears to be working well now. I had to reinstall from scratch unfortunately**

### Creating a bug report/issue

[X] I have searched the existing open and closed issues

#### Required Information

- DietPi version | 9.12.1
- Distro version | bookworm
- Kernel version | 6.12.25+rpt-rpi-v8
- Architecture | arm64
- SBC model | RPi 4 Model B
- Power supply used | RPi Official
- SD card used | Kingston 32GB HC-I U1

#### Additional Information (if applicable)

- Software title | Dietpi System
- Was the software title installed freshly or updated/migrated? Updated from previous versions
- Can this issue be replicated on a fresh installation of DietPi? Don’t know
- Bug report ID | b0ef31ad-673b-4a77-8a8d-61e64fa7865a

#### Steps to reproduce

1. …Upgrade from 9.12.1 to 9.13.2

#### Expected behaviour

- …Upgrade

#### Actual behaviour

- …Update fails

#### Extra details

I get the following errors:

```auto

APT upgrade                                                                                                            
                               │ - Command: apt-get -y --with-new-pkgs upgrade                                                                         
                               │ - Exit code: 100                                                                                                      
                               │ - DietPi version: v9.12.1 (MichaIng/master) | HW_MODEL: 4 | HW_ARCH: 3 | DISTRO: 7                                    
                               │ - Error log:                                                                                                          
                               │ Reading package lists...                                                                                               
                               │ Building dependency tree...                                                                                            
                               │ Reading state information...                                                                                           
                               │ Calculating upgrade...                                                                                                 
                               │ The following packages were automatically installed and are no longer required:                                        
                               │ linux-image-6.12.20+rpt-rpi-2712 linux-image-6.12.20+rpt-rpi-v8                                                      
                               │ Use 'apt autoremove' to remove them.                                                                                   
                               │ 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.                                                         
                               │ 5 not fully installed or removed.                                                                                      
                               │ After this operation, 0 B of additional disk space will be used.                                                       
                               │ Setting up initramfs-tools (0.142+rpt3+deb12u3) ...^M                                                                  
                               │ update-initramfs: deferring update (trigger activated)^M                                                               
                               │ Setting up linux-image-6.12.25+rpt-rpi-2712 (1:6.12.25-1+rpt1) ...^M                                                   
                               │ I: /initrd.img.old is now a symlink to boot/initrd.img-6.12.25+rpt-rpi-2712^M                                          
                               │ /etc/kernel/postinst.d/initramfs-tools:^M                                                                              
                               │ Segmentation fault^M                                                                                                   
                               │ ^M                                                                                                                     
                               │ Usage: update-initramfs {-c|-d|-u} [-k version] [-v] [-b directory]^M                                                  
                               │ ^M                                                                                                                     
                               │ Options:^M                                                                                                             
                               │ -k versionSpecify kernel version or 'all'^M                                                                           
                               │ -c Create a new initramfs^M                                                                                    
                               │ -u Update an existing initramfs^M                                                                              
                               │ -d Remove an existing initramfs^M                                                                              
                               │ -b directorySet alternate boot directory^M                                                                            
                               │ -v Be verbose^M                                                                                                
                               │ ^M                                                                                                                     
                               │ See update-initramfs(8) for further details.^M                                                                         
                               │ ^M                                                                                                                     
                               │ run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 2^M                                          
                               │ dpkg: error processing package linux-image-6.12.25+rpt-rpi-2712 (--configure):^M                                       
                               │ installed linux-image-6.12.25+rpt-rpi-2712 package post-installation script subprocess returned error exit status 1^M 
                               │ dpkg: dependency problems prevent configuration of linux-image-rpi-2712:^M                                             
                               │ linux-image-rpi-2712 depends on linux-image-6.12.25+rpt-rpi-2712 (= 1:6.12.25-1+rpt1); however:^M                     
                               │ Package linux-image-6.12.25+rpt-rpi-2712 is not configured yet.^M                                                    
                               │ ^M                                                                                                                     
                               │ dpkg: error processing package linux-image-rpi-2712 (--configure):^M                                                   
                               │ dependency problems - leaving unconfigured^M                                                                          
                               │ Setting up linux-image-6.12.25+rpt-rpi-v8 (1:6.12.25-1+rpt1) ...^M                                                     
                               │ I: /initrd.img is now a symlink to boot/initrd.img-6.12.25+rpt-rpi-v8^M                                                
                               │ /etc/kernel/postinst.d/initramfs-tools:^M                                                                              
                               │ Segmentation fault^M                                                                                                   
                               │ ^M                                                                                                                     
                               │ Usage: update-initramfs {-c|-d|-u} [-k version] [-v] [-b directory]^M                                                  
                               │ ^M                                                                                                                     
                               │ Options:^M                                                                                                             
                               │ -k versionSpecify kernel version or 'all'^M                                                                           
                               │ -c Create a new initramfs^M                                                                                    
                               │ -u Update an existing initramfs^M                                                                              
                               │ -d Remove an existing initramfs^M                                                                              
                               │ -b directorySet alternate boot directory^M                                                                            
                               │ -v Be verbose^M                                                                                                
                               │ ^M                                                                                                                     
                               │ See update-initramfs(8) for further details.^M                                                                         
                               │ ^M                                                                                                                     
                               │ run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 2^M                                          
                               │ dpkg: error processing package linux-image-6.12.25+rpt-rpi-v8 (--configure):^M                                         
                               │ installed linux-image-6.12.25+rpt-rpi-v8 package post-installation script subprocess returned error exit status 1^M   
                               │ dpkg: dependency problems prevent configuration of linux-image-rpi-v8:^M                                               
                               │ linux-image-rpi-v8 depends on linux-image-6.12.25+rpt-rpi-v8 (= 1:6.12.25-1+rpt1); however:^M                         
                               │ Package linux-image-6.12.25+rpt-rpi-v8 is not configured yet.^M                                                      
                               │ ^M                                                                                                                     
                               │ dpkg: error processing package linux-image-rpi-v8 (--configure):^M                                                     
                               │ dependency problems - leaving unconfigured^M                                                                          
                               │ Processing triggers for initramfs-tools (0.142+rpt3+deb12u3) ...^M                                                     
                               │ Segmentation fault^M

```

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [12 June 2025 09:12 UTC](https://dietpi.com/forum/t/solved-upgrade-to-9-12-1-to-9-13-2-failed/23621/2 "2025-06-12T09:12:16Z")

</div>

thx for sharing your update about your corrupted SD card.

---

<div class="post-metadata">

**Author:** ![system](https://dietpi.com/forum/uploads/default/original/1X/7e1021de2213860bce185915ce2c1786e56490ec.png) [@system](https://dietpi.com/forum/u/system)\
**Post date:** [10 September 2025 09:12 UTC](https://dietpi.com/forum/t/solved-upgrade-to-9-12-1-to-9-13-2-failed/23621/3 "2025-09-10T09:12:43Z")

</div>

Closed on 10 September 2025 09:12 UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
