Unable to update packages | F40 |

when tried to run -

sudo dnf upgrade; sudo dnf update

i get this ouput -

Transaction Summary
================================================================================
Install   25 Packages
Upgrade  773 Packages

Total download size: 1.3 G
Is this ok [y/N]: y
Downloading Packages:
(1/798): libavc1394-0.5.4-22.fc40.x86_64.rpm                                                                                                                                                                   26 kB/s |  55 kB     00:02    
(2/798): composefs-libs-1.0.3-1.fc40.x86_64.rpm                                                                                                                                                                28 kB/s |  62 kB     00:02    
(3/798): composefs-1.0.3-1.fc40.x86_64.rpm                                                                                                                                                                     29 kB/s |  66 kB     00:02    
(4/798): mesa-libGLU-9.0.3-4.fc40.x86_64.rpm                                                                                                                                                                  123 kB/s | 162 kB     00:01    
(5/798): libcaca-0.99-0.73.beta20.fc40.x86_64.rpm                                                                                                                                                             133 kB/s | 225 kB     00:01    
(6/798): libdc1394-2.2.7-5.fc40.x86_64.rpm                                                                                                                                                                     78 kB/s | 131 kB     00:01    
(7/798): python3-pam-2.0.2-8.fc40.noarch.rpm                                                                                                                                                                   32 kB/s |  32 kB     00:01    
(8/798): slang-2.3.3-5.fc40.x86_64.rpm                                                                                                                                                                        289 kB/s | 415 kB     00:01    
(9/798): openal-soft-1.23.1-5.fc40.x86_64.rpm                                                                                                                                                                 279 kB/s | 584 kB     00:02    
(10/798): dleyna-connector-dbus-0.8.3-4.fc40.x86_64.rpm                                                                                                                                                        27 kB/s |  15 kB     00:00    
[MIRROR] openh264-2.4.1-2.fc40.x86_64.rpm: Interrupted by header callback: Inconsistent server data, reported file Content-Length: 377, repository metadata states file length: 430357 (please report to repository maintainer)              
[MIRROR] openh264-2.4.1-2.fc40.x86_64.rpm: Interrupted by header callback: Inconsistent server data, reported file Content-Length: 377, repository metadata states file length: 430357 (please report to repository maintainer)              
[MIRROR] openh264-2.4.1-2.fc40.x86_64.rpm: Interrupted by header callback: Inconsistent server data, reported file Content-Length: 377, repository metadata states file length: 430357 (please report to repository maintainer)              
(11/798): adwaita-icon-theme-legacy-46.2-1.fc40.noarch.rpm                                                                                                                                                    968 kB/s | 2.5 MB     00:02    
[MIRROR] openh264-2.4.1-2.fc40.x86_64.rpm: Interrupted by header callback: Inconsistent server data, reported file Content-Length: 377, repository metadata states file length: 430357 (please report to repository maintainer)              
[FAILED] openh264-2.4.1-2.fc40.x86_64.rpm: No more mirrors to try - All mirrors were already tried without success                                                                                                                           
(13-14/798): ffmpeg-free-6.1.1-19.fc40.x86_64.rpm                                                    0% [                                                                                                   ] 854 kB/s | 5.1 MB     27:04 ETA
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
Error: Error downloading packages:
  openh264-2.4.1-2.fc40.x86_64: Cannot download, all mirrors were already tried without success
Fedora 40 openh264 (From Cisco) - x86_64                                                                                                                                                                      430  B/s | 989  B     00:02    
Dependencies resolved.

2. Transaction Summary
==============================================================================================================================================================================================================================================
Install   25 Packages
Upgrade  773 Packages

Total size: 1.3 G
Total download size: 1.3 G
Is this ok [y/N]: y
Downloading Packages:
[SKIPPED] composefs-1.0.3-1.fc40.x86_64.rpm: Already downloaded                                                                                                                                                                              
[SKIPPED] composefs-libs-1.0.3-1.fc40.x86_64.rpm: Already downloaded                                                                                                                                                                         
[SKIPPED] libavc1394-0.5.4-22.fc40.x86_64.rpm: Already downloaded                                                                                                                                                                            
[SKIPPED] libcaca-0.99-0.73.beta20.fc40.x86_64.rpm: Already downloaded                                                                                                                                                                       
[SKIPPED] libdc1394-2.2.7-5.fc40.x86_64.rpm: Already downloaded                                                                                                                                                                              
[SKIPPED] mesa-libGLU-9.0.3-4.fc40.x86_64.rpm: Already downloaded                                                                                                                                                                            
[SKIPPED] openal-soft-1.23.1-5.fc40.x86_64.rpm: Already downloaded                                                                                                                                                                           
[SKIPPED] python3-pam-2.0.2-8.fc40.noarch.rpm: Already downloaded                                                                                                                                                                            
[SKIPPED] slang-2.3.3-5.fc40.x86_64.rpm: Already downloaded                                                                                                                                                                                  
[SKIPPED] adwaita-icon-theme-legacy-46.2-1.fc40.noarch.rpm: Already downloaded                                                                                                                                                               
[SKIPPED] dleyna-connector-dbus-0.8.3-4.fc40.x86_64.rpm: Already downloaded                                                                                                                                                                  
Fedora 40 openh264 (From Cisco) - x86_64                                                           109% [============================================================================================================] 3.5 kB/s |  11 kB     -[MIRROR] openh264-2.4.1-2.fc40.x86_64.rpm: Interrupted by header callback: Inconsistent server data, reported file Content-Length: 377, repository metadata states file length: 430357 (please report to repository maintainer)              
[MIRROR] openh264-2.4.1-2.fc40.x86_64.rpm: Interrupted by header callback: Inconsistent server data, reported file Content-Length: 377, repository metadata states file length: 430357 (please report to repository maintainer)              
(12/798): freeglut-3.6.0-1.fc40.x86_64.rpm                                                                                                                                                                    132 kB/s | 147 kB     00:01    
[MIRROR] openh264-2.4.1-2.fc40.x86_64.rpm: Interrupted by header callback: Inconsistent server data, reported file Content-Length: 377, repository metadata states file length: 430357 (please report to repository maintainer)              
[MIRROR] openh264-2.4.1-2.fc40.x86_64.rpm: Interrupted by header callback: Inconsistent server data, reported file Content-Length: 377, repository metadata states file length: 430357 (please report to repository maintainer)              
[FAILED] openh264-2.4.1-2.fc40.x86_64.rpm: No more mirrors to try - All mirrors were already tried without success                                                                                                                           
(14-15/798): intel-vpl-gpu-rt-24.2.4-1.fc40.x86_64.rpm                                               0% [                                                                                                   ] 216 kB/s | 5.1 MB    106:55 ETA
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
Error: Error downloading packages:
  openh264-2.4.1-2.fc40.x86_64: Cannot download, all mirrors were already tried without success

Welcome to Fedora :fedora:

On Fedora, this is the same command. I believe on Ubuntu and derivatives it is used to update the system, but on Fedotra it is not. You essentially ran the same command twice.

1 Like

Removed intel, server

Not quite. apt update is equivalent to dnf check-upgrade --refresh. It downloads the latest list of available packages.

Try this way:

sudo dnf clean all
sudo dnf upgrade --refresh

If the issue persists, it’s probably a false positive caused by:

  • Corporate network firewall or some sort of IDS/IPS.
  • Government/ISP censorship or poorly configured traffic shaping.
  • GeoIP blocking due to matching the IP range of some sanctioned country.

This kind of problem typically resolves itself after some time.
Otherwise you need to use VPN or Tor to bypass it.

2 Likes
Inconsistent server data, reported file Content-Length: 377

Notice that you have the same error message, so it is very likely you are blocked.

1 Like

I’m having problems updating on F39. The error message is

Cannot download Packages/s/systemd-rpm-macros-254.13-1.fc39.noarch.rpm: All mirrors were tried; Last error: Status code: 404 for https://ask4.mm.fcix.net/fedora/linux/updates/39/Everything/x86_64/Packages/s/systemd-rpm-macros-254.13-1.fc39.noarch.rpm (IP: 78.109.176.29)

I could try installing F40 but would prefer to get F39 fully updated first.