pop-os / pop

A project for managing all Pop!_OS sources
https://system76.com/pop
2.34k stars 79 forks source link

apt-get claims that repo has changed various labels and aborts update #3240

Open trevor87 opened 3 months ago

trevor87 commented 3 months ago

After the last update (28.2.24) apt-get update does not work anymore and shows these errors:

E: Repository 'http://apt.pop-os.org/release jammy InRelease' changed its 'Origin' value from 'Ubuntu' to 'pop-os-release'
E: Repository 'http://apt.pop-os.org/release jammy InRelease' changed its 'Label' value from 'Ubuntu' to 'Pop!_OS Release'
N: Repository 'http://apt.pop-os.org/release jammy InRelease' changed its 'Suite' value from 'jammy-backports' to 'jammy'
E: Repository 'http://apt.pop-os.org/release jammy InRelease' changed its default priority for apt_preferences(5) from 100 to 500.
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.
N: Repository 'http://apt.pop-os.org/ubuntu jammy-security Release' changed its 'Suite' value from 'jammy-backports' to 'jammy-security'
E: Repository 'http://apt.pop-os.org/ubuntu jammy-security Release' changed its default priority for apt_preferences(5) from 100 to 500.
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.
N: Repository 'http://apt.pop-os.org/ubuntu jammy-updates Release' changed its 'Suite' value from 'jammy-security' to 'jammy-updates'

Did the repository really change?

Distribution (run cat /etc/os-release): NAME="Pop!_OS" VERSION="22.04 LTS" ID=pop ID_LIKE="ubuntu debian" PRETTY_NAME="Pop!_OS 22.04 LTS" VERSION_ID="22.04" HOME_URL="https://pop.system76.com" SUPPORT_URL="https://support.system76.com" BUG_REPORT_URL="https://github.com/pop-os/pop/issues" PRIVACY_POLICY_URL="https://system76.com/privacy" VERSION_CODENAME=jammy UBUNTU_CODENAME=jammy LOGO=distributor-logo-pop-os

Related Application and/or Package Version (run apt policy $PACKAGE NAME): apt: Installed: 2.4.11

Issue/Bug Description: When running sudo apt-get update I get the errors posted above.

Expected behavior: The command should run through without the errors.

Other Notes: Besides this problem after the update some colors of the GUI changed as well: Even though I have the dark theme enabled, the launcher is white now. Before it also had a dark theme.

anuradhan commented 1 month ago

i got similar error and got it working by running without get statement. sudo apt update && apt upgrade

jacobgkau commented 1 month ago

That's bizarre. Plain apt is what we recommend when running in a terminal (apt-get is more intended for scripts at this point), but the behavior should be the same. I'm not able to replicate this with apt-get or apt right now. @trevor87 Can you confirm if running sudo apt update fixes the issue like it did for @anuradhan?

Besides this problem after the update some colors of the GUI changed as well: Even though I have the dark theme enabled, the launcher is white now. Before it also had a dark theme.

This sounds like some other configuration must be causing an issue on your system. Can you post a screenshot of the problem?

trevor87 commented 1 month ago

I think I had fixed it with apt too. Sure, it does the same but I think apt interactively offered to accept the changes while apt-get just aborted with errors.

Now I do not have the error anymore, so unfortunately I cant give any further information.

PS: The GUI reverted itself somehow with some update to the normal color theme.

tsadarsh commented 3 weeks ago

I am facing this problem. I am running a Pop!_OS 22.04 LTS. Here is my output when I run a sudo apt update:

Hit:1 https://dl.google.com/linux/chrome/deb stable InRelease                                                                                                                                
Hit:3 https://download.docker.com/linux/ubuntu jammy InRelease                                                                                                                               
Hit:4 http://apt.pop-os.org/proprietary jammy InRelease                                                                                                                                    
Hit:5 http://packages.osrfoundation.org/gazebo/ubuntu-stable jammy InRelease                                                                                                           
Hit:6 https://ppa.launchpadcontent.net/appimagelauncher-team/stable/ubuntu jammy InRelease                                                                                             
Get:7 http://apt.pop-os.org/release jammy InRelease [16.6 kB]                                                                                                   
Get:2 https://packages.microsoft.com/repos/code stable InRelease [3,590 B]                                                                                               
Hit:8 https://ppa.launchpadcontent.net/flexiondotorg/quickemu/ubuntu jammy InRelease                                                                                                     
E: Repository 'http://apt.pop-os.org/release jammy InRelease' changed its 'Origin' value from 'Ubuntu' to 'pop-os-release'
E: Repository 'http://apt.pop-os.org/release jammy InRelease' changed its 'Label' value from 'Ubuntu' to 'Pop!_OS Release'
N: Repository 'http://apt.pop-os.org/release jammy InRelease' changed its 'Suite' value from 'jammy-updates' to 'jammy'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.
Do you want to accept these changes and continue updating from this repository? [y/N] a
Hit:9 https://ppa.launchpadcontent.net/obsproject/obs-studio/ubuntu jammy InRelease                                                                                                          
Hit:10 https://ppa.launchpadcontent.net/yannick-mauray/quickgui/ubuntu jammy InRelease                                                                                                       
Get:11 http://apt.pop-os.org/ubuntu jammy InRelease [270 kB]                                                                                                                                 
Hit:12 http://apt.pop-os.org/ubuntu jammy-security InRelease                                                                                                                                 
Hit:13 http://apt.pop-os.org/ubuntu jammy-updates InRelease                                                                                                                                  
Get:14 http://apt.pop-os.org/ubuntu jammy-backports InRelease [109 kB]                                                                                                                       
Hit:15 http://packages.ros.org/ros2/ubuntu jammy InRelease                                                                                                                                   
Hit:16 https://download.sublimetext.com apt/stable/ InRelease                                                                                                                                
Ign:17 http://apt.pop-os.org/ubuntu jammy/restricted Sources                                                                                                                                 
Ign:18 http://apt.pop-os.org/ubuntu jammy/multiverse Sources                                                                                                                                 
Ign:19 http://apt.pop-os.org/ubuntu jammy/restricted amd64 Packages                                                                                                                          
Ign:20 http://apt.pop-os.org/ubuntu jammy/restricted i386 Packages                                                                                                                           
Ign:21 http://apt.pop-os.org/ubuntu jammy/restricted Translation-en                                                                                                                          
Ign:22 http://apt.pop-os.org/ubuntu jammy/multiverse amd64 Packages                                                                                                                          
Ign:23 http://apt.pop-os.org/ubuntu jammy/multiverse i386 Packages                                                                                                                           
Ign:24 http://apt.pop-os.org/ubuntu jammy/multiverse Translation-en                                                                                                                          
Get:17 http://apt.pop-os.org/ubuntu jammy/restricted Sources [54.1 kB]                                                                                                                       
Err:17 http://apt.pop-os.org/ubuntu jammy/restricted Sources                                                                                                                                 
  File has unexpected size (23660 != 54056). Mirror sync in progress? [IP: 18.161.111.102 80]
  Hashes of expected file:
   - Filesize:54056 [weak]
   - SHA256:79f52f1c95eed86c2af2096bf0085e8336b364cc30080cc2e43e55ae31295761
   - SHA1:7c190f7e757a60a816dd3dafdc850d93911ecefd [weak]
   - MD5Sum:597852c60b224e962765a67fd417b9eb [weak]
  Release file created at: Mon, 15 Jan 2024 15:45:57 +0000
Get:18 http://apt.pop-os.org/ubuntu jammy/multiverse Sources [18.9 kB]                                                                                                                       
Err:18 http://apt.pop-os.org/ubuntu jammy/multiverse Sources                                                                                                                                 

Get:19 http://apt.pop-os.org/ubuntu jammy/restricted amd64 Packages [1,272 kB]                                                                                                               
Err:19 http://apt.pop-os.org/ubuntu jammy/restricted amd64 Packages                                                                                                                          

Get:20 http://apt.pop-os.org/ubuntu jammy/restricted i386 Packages [33.2 kB]                                                                                                                 
Err:20 http://apt.pop-os.org/ubuntu jammy/restricted i386 Packages                                                                                                                           

Get:21 http://apt.pop-os.org/ubuntu jammy/restricted Translation-en [207 kB]                                                                                                                 
Err:21 http://apt.pop-os.org/ubuntu jammy/restricted Translation-en                                                                                                                          

Get:22 http://apt.pop-os.org/ubuntu jammy/multiverse amd64 Packages [42.1 kB]                                                                                                                
Err:22 http://apt.pop-os.org/ubuntu jammy/multiverse amd64 Packages                                                                                                                          

Get:23 http://apt.pop-os.org/ubuntu jammy/multiverse i386 Packages [4,160 B]                                                                                                                 
Err:23 http://apt.pop-os.org/ubuntu jammy/multiverse i386 Packages                                                                                                                           

Get:24 http://apt.pop-os.org/ubuntu jammy/multiverse Translation-en [10.1 kB]                                                                                                                
Err:24 http://apt.pop-os.org/ubuntu jammy/multiverse Translation-en                                                                                                                          

Fetched 399 kB in 16s (25.1 kB/s)                                                                                                                                                            
Reading package lists... Done
E: Failed to fetch http://apt.pop-os.org/release/dists/jammy/InRelease  
E: Failed to fetch http://apt.pop-os.org/ubuntu/dists/jammy/restricted/source/Sources.xz  File has unexpected size (23660 != 54056). Mirror sync in progress? [IP: 18.161.111.102 80]
   Hashes of expected file:
    - Filesize:54056 [weak]
    - SHA256:79f52f1c95eed86c2af2096bf0085e8336b364cc30080cc2e43e55ae31295761
    - SHA1:7c190f7e757a60a816dd3dafdc850d93911ecefd [weak]
    - MD5Sum:597852c60b224e962765a67fd417b9eb [weak]
   Release file created at: Mon, 15 Jan 2024 15:45:57 +0000
E: Failed to fetch http://apt.pop-os.org/ubuntu/dists/jammy/multiverse/source/Sources.xz  
E: Failed to fetch http://apt.pop-os.org/ubuntu/dists/jammy/restricted/binary-amd64/Packages.xz  
E: Failed to fetch http://apt.pop-os.org/ubuntu/dists/jammy/restricted/binary-i386/Packages.xz  
E: Failed to fetch http://apt.pop-os.org/ubuntu/dists/jammy/restricted/i18n/Translation-en.xz  
E: Failed to fetch http://apt.pop-os.org/ubuntu/dists/jammy/multiverse/binary-amd64/Packages.xz  
E: Failed to fetch http://apt.pop-os.org/ubuntu/dists/jammy/multiverse/binary-i386/Packages.xz  
E: Failed to fetch http://apt.pop-os.org/ubuntu/dists/jammy/multiverse/i18n/Translation-en.xz  
E: Some index files failed to download. They have been ignored, or old ones used instead.