Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#12710 - Mirror list update should not replace current mirror list

Attached to Project: Arch Linux
Opened by changed user account to dsohler (Dirk.Sohler) - Thursday, 08 January 2009, 14:12 GMT
Last edited by Dan McGee (toofishes) - Saturday, 17 January 2009, 16:07 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Dan McGee (toofishes)
Architecture All
Severity Medium
Priority Normal
Reported Version None
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Summary and Info:

As you all know Pacman does not provide a mirror list by itself, the mirror list is available via the pacman-mirrorlist package. If this pacage gets upgraded, the current mirror list will be backupped and replaced with the mirror list provided by the package.

In this mirror list all Servers are enabled by default, including <ftp.archlinux.org>. This results in extremely slow updates and – in my case – an error because of the core package can not be found (was the first time, never checked again).

Would be great, if the current mirror list does not get replaced by this unusable mirror list every time the package gets updated. Would be also great, if i could remove the mirror list package without removing Pacman (what would be very stupid *g*)


Steps to Reproduce:

Edit your </etc/pacman.d/mirrorlist>, update pacman-mirrorlist package.
This task depends upon

Closed by  Dan McGee (toofishes)
Saturday, 17 January 2009, 16:07 GMT
Reason for closing:  Not a bug
Comment by Dan McGee (toofishes) - Thursday, 08 January 2009, 14:15 GMT
Can you describe your update path?

If you updated to the original pacman & pacman-mirrorlist split packages, we know that there is a one time problem with your mirrorlist being moved to pacorig. However, subsequent updates to the pacman-mirrorlist package should place any new updates in a pacnew file, not replacing your customized mirror file.
Comment by changed user account to dsohler (Dirk.Sohler) - Thursday, 08 January 2009, 14:31 GMT
Well … I had this problems a few weeks ago, as the macman-mirrorlist package was introduced. The old mirror list file was packupped and replaced with the new one. Today it was the same. The current mirror list was pacuped and replaced by the new one, even if the Pacman logfile says …

[2009-01-08 06:40] warning: /etc/pacman.d/mirrorlist installed as /etc/pacman.d/mirrorlist.pacnew

… the new new mirror list replaced the current mirror list, that was backupped before. I had to delete </etc/pacman.d/mirrorlist> and rename the pacup file again.
Comment by Dan McGee (toofishes) - Thursday, 08 January 2009, 14:38 GMT
What you say there indicates the file was not replaced. When that message is shown, it indicates your modified mirrorlist file was left as is, and the new file was installed to mirrorlist.pacnew. I'm not sure what you want us to do here...
Comment by changed user account to dsohler (Dirk.Sohler) - Thursday, 08 January 2009, 15:42 GMT
The logfile was wrong. I had to remove </etc/pacman.d/mirrorlist> and rename </etc/pacman.d/mirrorlist.pacorig> to </etc/pacman.d/mirrorlist>. There was no mirrorlist.pacnew file in this folder. It’s like a few weeks ago, the new (and not usable because the enabled <ftp.archlinux.org> mirror at the top of this file, resulting in extremely slow updates) mirror list file replaced the old one, and the old one was packupped.

The interresting thing is, according to the error analysis in a forum, i tried to reinstall the mirror list package. Now it does not touch the mirror list file at all ...


root@host:~# pacman -S pacman-mirrorlist
warning: pacman-mirrorlist-20090106-1 is up to date -- reinstalling
resolving dependencies...
looking for inter-conflicts...
[…]

root@host:/etc/pacman.d# ls
mirrorlist

root@host:/etc/pacman.d# cat mirrorlist
Server=ftp://ftp.hosteurope.de/mirror/ftp.archlinux.org/$repo/os/x86_64
Comment by Dan McGee (toofishes) - Saturday, 17 January 2009, 06:11 GMT
Anything we can do here? I'd like to close this otherwise.
Comment by changed user account to dsohler (Dirk.Sohler) - Saturday, 17 January 2009, 13:50 GMT
I’d say, if this not happens at the next regular Pacman mirrorlist update, it can be closet. But i’d wait until the next update.
Comment by Allan McRae (Allan) - Saturday, 17 January 2009, 14:00 GMT
There was an update put in [core] today, so report back once you have tried it.
Comment by changed user account to dsohler (Dirk.Sohler) - Saturday, 17 January 2009, 16:03 GMT
Looks like if it works now :) Unlike the last two times, the warning was right now, and my edited mirror list was not overwritten this time.

# ls
mirrorlist
# cat mirrorlist
Server=ftp://ftp.hosteurope.de/mirror/ftp.archlinux.org/$repo/os/x86_64
root /etc/pacman.d # pacman -Syu
[…]
warning: /etc/pacman.d/mirrorlist installed as /etc/pacman.d/mirrorlist.pacnew
[…]
# ls
mirrorlist mirrorlist.pacnew
# cat mirrorlist
Server=ftp://ftp.hosteurope.de/mirror/ftp.archlinux.org/$repo/os/x86_64
#

Loading...