[SOLVED] Upgrade from 18.2 to 19 broke my apt

Questions about other topics - please check if your question fits better in another category before posting here
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
manoaratefy
Level 1
Level 1
Posts: 26
Joined: Thu Dec 13, 2018 1:58 am
Location: Madagascar
Contact:

[SOLVED] Upgrade from 18.2 to 19 broke my apt

Post by manoaratefy »

Good morning,

I've upgraded from 18.2 to 19. Everything was going right. But after upgrade, my apt show hash sum mismatch on some repositories (not all):

Code: Select all

http://archive.ubuntu.com/ubuntu bionic/universe i386 Packages
http://archive.ubuntu.com/ubuntu bionic-updates/main Sources
http://archive.ubuntu.com/ubuntu bionic-backports/universe Sources
I've also tried to clean apt with these commands but it did'nt solved my issue:

Code: Select all

apt-get autoclean
apt-get clean
rm -r /var/lib/apt/lists/*
Any other ideas? Thanks in advance.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
karlchen
Level 23
Level 23
Posts: 18239
Joined: Sat Dec 31, 2011 7:21 am
Location: Germany

Re: Upgrade from 18.2 to 19 broke my apt

Post by karlchen »

Hello, manoaratefy.

How precisely did you upgrade from Mint 18.2 to Mint 19? In-place upgrade or fresh installation?
Note:
There is no officially supported direct in-place upgrade from Mint 18.2 to Mint 19.
The official in-place upgrade way would be:
my apt show hash sum mismatch on some repositories (not all)
Please, post the terminal output of the 2 commands

Code: Select all

inxi -Sr

Code: Select all

apt update
Just giving 3 repo names does not give us the precise error messages.

Best regards,
Karl
Image
The people of Alderaan have been bravely fighting back the clone warriors sent out by the unscrupulous Sith Lord Palpatine for 792 days now.
Lifeline
manoaratefy
Level 1
Level 1
Posts: 26
Joined: Thu Dec 13, 2018 1:58 am
Location: Madagascar
Contact:

Re: Upgrade from 18.2 to 19 broke my apt

Post by manoaratefy »

I've done upgrade using mintupgrade.

Here is output:

Code: Select all

manoaratefy@manoaratefy-hb ~ $ inxi -Sr
System:    Host: manoaratefy-hb Kernel: 4.15.0-34-generic x86_64 bits: 64
           Desktop: Cinnamon 3.8.9  Distro: Linux Mint 19 Tara
Repos:     Active apt sources in file: /etc/apt/sources.list.d/official-package-repositories.list
           deb https://mirrors.ukfast.co.uk/sites/linuxmint.com/packages tara main upstream import backport
           deb http://archive.ubuntu.com/ubuntu bionic main restricted universe multiverse
           deb http://archive.ubuntu.com/ubuntu bionic-updates main restricted universe multiverse
           deb http://archive.ubuntu.com/ubuntu bionic-backports main restricted universe multiverse
           deb http://security.ubuntu.com/ubuntu/ bionic-security main restricted universe multiverse
           deb http://archive.canonical.com/ubuntu/ bionic partner
           Active apt sources in file: /etc/apt/sources.list.d/official-source-repositories.list
           deb-src https://mirrors.ukfast.co.uk/sites/linuxmint.com/packages tara main upstream import backport
           deb-src http://archive.ubuntu.com/ubuntu bionic main restricted universe multiverse
           deb-src http://archive.ubuntu.com/ubuntu bionic-updates main restricted universe multiverse
           deb-src http://archive.ubuntu.com/ubuntu bionic-backports main restricted universe multiverse
           deb-src http://security.ubuntu.com/ubuntu/ bionic-security main restricted universe multiverse
           deb-src http://archive.canonical.com/ubuntu/ bionic partner
And strangely, once I did apt update instead of apt-get update, it works:

Code: Select all

manoaratefy@manoaratefy-hb ~ $ sudo apt update
[sudo] password for manoaratefy: 
Réception de:1 http://archive.canonical.com/ubuntu bionic InRelease [10,2 kB]                                                
Réception de:2 http://security.ubuntu.com/ubuntu bionic-security InRelease [88,7 kB]                                                                       
Réception de:3 http://archive.ubuntu.com/ubuntu bionic InRelease [242 kB]                                                                                               
Ign:4 https://mirrors.ukfast.co.uk/sites/linuxmint.com/packages tara InRelease                                                                                          
Atteint:5 https://mirrors.ukfast.co.uk/sites/linuxmint.com/packages tara Release                                                                                        
Réception de:7 http://security.ubuntu.com/ubuntu bionic-security/main Sources [71,2 kB]                                                                                 
Réception de:8 http://security.ubuntu.com/ubuntu bionic-security/main i386 Packages [190 kB]                                                                            
Réception de:9 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [247 kB]                                                                           
Réception de:10 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88,7 kB]                                                                                     
Réception de:11 http://security.ubuntu.com/ubuntu bionic-security/main Translation-en [93,9 kB]                                                                         
Réception de:12 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74,6 kB]                                                                                   
Réception de:13 http://archive.ubuntu.com/ubuntu bionic/multiverse Sources [181 kB]                                                                                     
Réception de:14 http://archive.ubuntu.com/ubuntu bionic/main Sources [829 kB]                                                                                           
Réception de:15 http://archive.ubuntu.com/ubuntu bionic/restricted Sources [5 324 B]                                                                                    
Réception de:16 http://archive.ubuntu.com/ubuntu bionic/universe Sources [9 051 kB]                                                                                     
Réception de:17 http://archive.ubuntu.com/ubuntu bionic/main i386 Packages [1 007 kB]                                                                                   
Réception de:18 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages [1 019 kB]                                                                                  
Réception de:19 http://archive.ubuntu.com/ubuntu bionic/main Translation-fr [513 kB]                                                                                    
Réception de:20 http://archive.ubuntu.com/ubuntu bionic/main Translation-en [516 kB]                                                                                    
Réception de:21 http://archive.ubuntu.com/ubuntu bionic/restricted i386 Packages [9 156 B]                                                                              
Réception de:22 http://archive.ubuntu.com/ubuntu bionic/restricted amd64 Packages [9 184 B]                                                                             
Réception de:23 http://archive.ubuntu.com/ubuntu bionic/restricted Translation-fr [2 380 B]                                                                             
Réception de:24 http://archive.ubuntu.com/ubuntu bionic/restricted Translation-en [3 584 B]                                                                             
Réception de:25 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages [8 570 kB]                                                                              
Réception de:26 http://archive.ubuntu.com/ubuntu bionic/universe i386 Packages [8 531 kB]                                                                               
Réception de:27 http://archive.ubuntu.com/ubuntu bionic/universe Translation-en [4 941 kB]                                                                              
Réception de:28 http://archive.ubuntu.com/ubuntu bionic/universe Translation-fr [2 972 kB]                                                                              
Réception de:29 http://archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages [151 kB]                                                                              
Réception de:30 http://archive.ubuntu.com/ubuntu bionic/multiverse i386 Packages [144 kB]                                                                               
Réception de:31 http://archive.ubuntu.com/ubuntu bionic/multiverse Translation-en [108 kB]                                                                              
Réception de:32 http://archive.ubuntu.com/ubuntu bionic/multiverse Translation-fr [109 kB]                                                                              
Réception de:33 http://archive.ubuntu.com/ubuntu bionic-updates/universe Sources [123 kB]                                                                               
Réception de:34 http://archive.ubuntu.com/ubuntu bionic-updates/restricted Sources [2 064 B]                                                                            
Réception de:35 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse Sources [3 828 B]                                                                            
Réception de:36 http://archive.ubuntu.com/ubuntu bionic-updates/main Sources [234 kB]                                                                                   
Réception de:37 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [496 kB]                                                                            
Réception de:38 http://archive.ubuntu.com/ubuntu bionic-updates/main i386 Packages [430 kB]                                                                             
Réception de:39 http://archive.ubuntu.com/ubuntu bionic-updates/main Translation-en [186 kB]                                                                            
Réception de:40 http://archive.ubuntu.com/ubuntu bionic-updates/restricted i386 Packages [6 928 B]                                                                      
Réception de:41 http://archive.ubuntu.com/ubuntu bionic-updates/restricted amd64 Packages [6 992 B]                                                                     
Réception de:42 http://archive.ubuntu.com/ubuntu bionic-updates/restricted Translation-en [3 076 B]                                                                     
Réception de:43 http://archive.ubuntu.com/ubuntu bionic-updates/universe i386 Packages [706 kB]                                                                         
Réception de:44 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [715 kB]                                                                        
Réception de:45 http://archive.ubuntu.com/ubuntu bionic-updates/universe Translation-en [177 kB]                                                                        
Réception de:46 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse i386 Packages [6 540 B]                                                                      
Réception de:47 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 Packages [6 388 B]                                                                     
Réception de:48 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse Translation-en [3 356 B]                                                                     
Réception de:49 http://archive.ubuntu.com/ubuntu bionic-backports/universe Sources [2 068 B]                                                                            
Réception de:50 http://archive.ubuntu.com/ubuntu bionic-backports/universe i386 Packages [3 472 B]                                                                      
Réception de:51 http://archive.ubuntu.com/ubuntu bionic-backports/universe amd64 Packages [3 472 B]                                                                     
Réception de:52 http://archive.ubuntu.com/ubuntu bionic-backports/universe Translation-en [1 604 B]                                                                     
42,9 Mo réceptionnés en 15min 58s (44,8 ko/s)                                                                                                                           
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances       
Lecture des informations d'état... Fait
5 paquets peuvent être mis à jour. Exécutez « apt list --upgradable » pour les voir.
philotux

Re: Upgrade from 18.2 to 19 broke my apt

Post by philotux »

Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances
Lecture des informations d'état... Fait
5 paquets peuvent être mis à jour. Exécutez « apt list --upgradable » pour les voir.
There doesn't seem to be any problem with your APT, judging from the output of sudo apt update. You seem to have 5 packages that can be upgraded. I would use Update Manager to perform the updates. Probably the mirrors you use weren't updated before when you got those error messages.
User avatar
trytip
Level 14
Level 14
Posts: 5367
Joined: Tue Jul 05, 2016 1:20 pm

Re: Upgrade from 18.2 to 19 broke my apt

Post by trytip »

what does lsb_release -a show?
Image
manoaratefy
Level 1
Level 1
Posts: 26
Joined: Thu Dec 13, 2018 1:58 am
Location: Madagascar
Contact:

Re: [SOLVED] Upgrade from 18.2 to 19 broke my apt

Post by manoaratefy »

philotux wrote: Mon Jan 28, 2019 3:28 pm There doesn't seem to be any problem with your APT, judging from the output of sudo apt update. You seem to have 5 packages that can be upgraded. I would use Update Manager to perform the updates. Probably the mirrors you use weren't updated before when you got those error messages.
Maybe it is the correct explanation.
trytip wrote: Mon Jan 28, 2019 3:40 pm what does lsb_release -a show?

Code: Select all

Distributor ID:	LinuxMint
Description:	Linux Mint 19 Tara
Release:	19
Codename:	tara
Locked

Return to “Other topics”