upgrade errors: mint-mirrors

Archived topics about LMDE 1 and LMDE 2
Locked
User avatar
xfrank
Level 5
Level 5
Posts: 616
Joined: Sat Nov 24, 2012 6:09 pm
Location: Mexico City
Contact:

upgrade errors: mint-mirrors

Post by xfrank »

I know there aren't yet new upgrade packages, but i did "sudo apt-get upgrade" (after update) and I have some errors (in spanish):

Code: Select all

sudo apt-get upgrade
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias       
Leyendo la información de estado... Hecho
Se actualizarán los siguientes paquetes:
  mint-mirrors
1 actualizados, 0 se instalarán, 0 para eliminar y 0 no actualizados.
Se necesita descargar 0 B/2 360 B de archivos.
Se utilizarán 0 B de espacio de disco adicional después de esta operación.
¿Desea continuar [S/n]? s
(Leyendo la base de datos ... 209796 ficheros o directorios instalados actualmente.)
Preparando para reemplazar mint-mirrors 1.0.2 (usando .../mint-mirrors_1.0.3_all.deb) ...
Desempaquetando el reemplazo de mint-mirrors ...
dpkg: error processing /var/cache/apt/archives/mint-mirrors_1.0.3_all.deb (--unpack):
 intentando sobreescribir `/usr/share/python-apt/templates/LinuxMint.mirrors', que está también en el paquete mintupdate-debian 1.0.6
Se encontraron errores al procesar:
 /var/cache/apt/archives/mint-mirrors_1.0.3_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
something to worry about or all is fine?
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.
Active Distros in my computers: LM21.1 (Mate,Xfce); MXLinux (Xfce)
User avatar
xfrank
Level 5
Level 5
Posts: 616
Joined: Sat Nov 24, 2012 6:09 pm
Location: Mexico City
Contact:

Re: upgrade errors

Post by xfrank »

also mintupdate give errors:

[se ha producido un error. Se proporcionaron los siguientes detalles:

E: /var/cache/apt/archives/mint-mirrors_1.0.3_all.deb: intentando sobreescribir `/usr/share/python-apt/templates/LinuxMint.mirrors', que está también en el paquete mintupdate-debian 1.0.6
Active Distros in my computers: LM21.1 (Mate,Xfce); MXLinux (Xfce)
Monsta
Level 10
Level 10
Posts: 3071
Joined: Fri Aug 19, 2011 3:46 am

Re: upgrade errors

Post by Monsta »

Interesting... they do conflict indeed. Just tested it on a fresh Virtualbox installation. BTW, mint-mirrors is not installed by default (if you use the latest ISO, 201303). How did you get the older version?

Side note: please use LC_ALL=C prefix if you're going to post any command output here. This will make all messages appear in English. For example,

Code: Select all

LC_ALL=C sudo apt-get dist-upgrade
Side note 2: [url=http://forums.linuxmint.com/viewtopic.php?f=198&t=112836]always use apt-get dist-upgrade instead of apt-get upgrade[/url] :)
User avatar
xfrank
Level 5
Level 5
Posts: 616
Joined: Sat Nov 24, 2012 6:09 pm
Location: Mexico City
Contact:

Re: upgrade errors

Post by xfrank »

Ok, dist-upgrade:

Code: Select all

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  mint-mirrors
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/2360 B of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
(Reading database ... 209796 files and directories currently installed.)
Preparing to replace mint-mirrors 1.0.2 (using .../mint-mirrors_1.0.3_all.deb) ...
Unpacking replacement mint-mirrors ...
dpkg: error processing /var/cache/apt/archives/mint-mirrors_1.0.3_all.deb (--unpack):
 trying to overwrite '/usr/share/python-apt/templates/LinuxMint.mirrors', which is also in package mintupdate-debian 1.0.6
Errors were encountered while processing:
 /var/cache/apt/archives/mint-mirrors_1.0.3_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
my kernel is: System: Host xflmde Kernel 3.9-1-amd64 x86_64 (64 bit) Distro LinuxMint 1 debian
I have the last LMDE version.
please, help
Maybe a force-install of mint-mirrors? or delete previously the old mint-mirrors?
Active Distros in my computers: LM21.1 (Mate,Xfce); MXLinux (Xfce)
User avatar
xfrank
Level 5
Level 5
Posts: 616
Joined: Sat Nov 24, 2012 6:09 pm
Location: Mexico City
Contact:

Re: upgrade errors: mint-mirrors

Post by xfrank »

Ok, I've found a way...
I searched in usr/share/phyton-apt/template, renamed the file LinuxMint.mirrors to LinuxMint.mirrors.old
Immediately the mintupdate icon turned to green. All seems fine now, no updates or upgrades in sight and no errors.

Just curious: LinuxMint.mirros is not used anymore by LMDE? Only Debian.mirrors?
Active Distros in my computers: LM21.1 (Mate,Xfce); MXLinux (Xfce)
Monsta
Level 10
Level 10
Posts: 3071
Joined: Fri Aug 19, 2011 3:46 am

Re: upgrade errors: mint-mirrors

Post by Monsta »

xfrank wrote:I searched in usr/share/phyton-apt/template, renamed the file LinuxMint.mirrors to LinuxMint.mirrors.old
And then installed the new mint-mirrors?
User avatar
xfrank
Level 5
Level 5
Posts: 616
Joined: Sat Nov 24, 2012 6:09 pm
Location: Mexico City
Contact:

Re: upgrade errors: mint-mirrors

Post by xfrank »

no, I didn't installed new mint-mirrors. Do I have to do?
Active Distros in my computers: LM21.1 (Mate,Xfce); MXLinux (Xfce)
Monsta
Level 10
Level 10
Posts: 3071
Joined: Fri Aug 19, 2011 3:46 am

Re: upgrade errors: mint-mirrors

Post by Monsta »

Please post the output of these commands:

Code: Select all

inxi -r

Code: Select all

LC_ALL=C apt-cache policy mintupdate

Code: Select all

LC_ALL=C apt-cache policy mintupdate-debian

Code: Select all

LC_ALL=C apt-cache policy mint-mirrors
User avatar
xfrank
Level 5
Level 5
Posts: 616
Joined: Sat Nov 24, 2012 6:09 pm
Location: Mexico City
Contact:

Re: upgrade errors: mint-mirrors

Post by xfrank »

Code: Select all

xfrank@xflmde ~ $ inxi -r
Repos:     Active apt sources in file: /etc/apt/sources.list
           deb http://packages.linuxmint.com/ debian main upstream import
           deb http://mirror.metrocast.net/linuxmint-debian/latest testing main contrib non-free
           deb http://mirror.metrocast.net/linuxmint-debian/latest/security testing/updates main contrib non-free
           deb http://mirror.metrocast.net/linuxmint-debian/latest/multimedia testing main non-free

Code: Select all

xfrank@xflmde ~ $ LC_ALL=C apt-cache policy mintupdate
mintupdate:
  Installed: (none)
  Candidate: 4.4.7
  Version table:
     4.4.7 0
        700 http://packages.linuxmint.com/ debian/main amd64 Packages
        100 /var/lib/dpkg/status 

Code: Select all

 xfrank@xflmde ~ $ LC_ALL=C apt-cache policy mint-mirrors
mint-mirrors:
  Installed: (none)
  Candidate: 1.0.3
  Version table:
     1.0.3 0
        700 http://packages.linuxmint.com/ debian/main amd64 Packages

Code: Select all

 xfrank@xflmde ~ $ LC_ALL=C apt-cache policy mintupdate-debian
mintupdate-debian:
  Installed: 1.0.6
  Candidate: 1.0.6
  Version table:
 *** 1.0.6 0
        700 http://packages.linuxmint.com/ debian/main amd64 Packages
        100 /var/lib/dpkg/status
Active Distros in my computers: LM21.1 (Mate,Xfce); MXLinux (Xfce)
Monsta
Level 10
Level 10
Posts: 3071
Joined: Fri Aug 19, 2011 3:46 am

Re: upgrade errors: mint-mirrors

Post by Monsta »

xfrank wrote:

Code: Select all

 xfrank@xflmde ~ $ LC_ALL=C apt-cache policy mint-mirrors
mint-mirrors:
  Installed: (none)
  Candidate: 1.0.3
  Version table:
     1.0.3 0
        700 http://packages.linuxmint.com/ debian/main amd64 Packages
Wait. You didn't say you removed it in the process. :shock:
User avatar
xfrank
Level 5
Level 5
Posts: 616
Joined: Sat Nov 24, 2012 6:09 pm
Location: Mexico City
Contact:

Re: upgrade errors: mint-mirrors

Post by xfrank »

sorry, I forgot to mention it, I uninstalled mint-mirrors from synaptic.

I just tried to reinstall mint-mirrors and the issue appeared again:

Code: Select all

xfrank@xflmde ~ $ sudo apt-get install mint-mirrors
[sudo] password for xfrank: 
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias       
Leyendo la información de estado... Hecho
Se instalarán los siguientes paquetes NUEVOS:
  mint-mirrors
0 actualizados, 1 se instalarán, 0 para eliminar y 0 no actualizados.
Se necesita descargar 0 B/2 360 B de archivos.
Se utilizarán 36.9 kB de espacio de disco adicional después de esta operación.
(Leyendo la base de datos ... 209793 ficheros o directorios instalados actualmente.)
Desempaquetando mint-mirrors (de .../mint-mirrors_1.0.3_all.deb) ...
dpkg: error processing /var/cache/apt/archives/mint-mirrors_1.0.3_all.deb (--unpack):
 intentando sobreescribir `/usr/share/python-apt/templates/LinuxMint.mirrors', que está también en el paquete mintupdate-debian 1.0.6
Se encontraron errores al procesar:
 /var/cache/apt/archives/mint-mirrors_1.0.3_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1) 
sorry I forgot to translate to english. But the error is the same...
Active Distros in my computers: LM21.1 (Mate,Xfce); MXLinux (Xfce)
Monsta
Level 10
Level 10
Posts: 3071
Joined: Fri Aug 19, 2011 3:46 am

Re: upgrade errors: mint-mirrors

Post by Monsta »

:shock: Can't imagine how an action like that can be forgotten.
Anyway, now that you got rid of the conflicting package, rename LinuxMint.mirrors.old back. Don't leave it renamed. It shouldn't have been done in the first place.

Don't try to reinstall mint-mirrors, it will conflict with mintupdate-debian no matter what you do.
User avatar
xfrank
Level 5
Level 5
Posts: 616
Joined: Sat Nov 24, 2012 6:09 pm
Location: Mexico City
Contact:

Re: upgrade errors: mint-mirrors

Post by xfrank »

Ok, mint-mirrors is not installed again (I will not do it), LinuxMint.mirrors file is back again. Just did a dist-upgrade in terminal and no error appeared. Seems all fine now.
Thanks for your help and patience, I just want to learn to use correctly LMDE (I would convert it in my main distro). :)
Active Distros in my computers: LM21.1 (Mate,Xfce); MXLinux (Xfce)
Locked

Return to “LMDE Archive”