LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mageia
User Name
Password
Mageia This forum is for the discussion of Mageia Linux.

Notices


Reply
  Search this Thread
Old 12-06-2023, 10:42 PM   #1
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,326
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
After online upgrade to v. 9, unable to update


I have a strange problem with Mageia after doing an online upgrade from v. 8. to v. 9.

When I try to run an update, I get the follwoing error:

Code:
# urpmi --auto-update
mirror list not found
Could not find a mirror from mirrorlist $MIRRORLIST
I searched for the error message and turne up several Mageia sites, but I could not find much helpful there. These are the sites:

https://wiki.mageia.org/en/Finding_Mageia_rsync_servers

https://mirrors.mageia.org/

https://wiki.mageia.org/en/Mageia_9_Errata

I did follow one of the suggestions. I opened drakconf, went to Software Management-->Configure media sources for install and update-->File-->Add a custom medium and added a repo from the repo list above. It did not work.

Before I do a reinstall, I thought should ask whether anyone has a suggestion as to how I could fix this without a reinstall.

I will add that when I did an online upgrade from v. 7 to v. 8, it went flawlessly.

Last edited by frankbell; 12-06-2023 at 10:47 PM.
 
Old 12-06-2023, 10:52 PM   #2
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,810
Blog Entries: 1

Rep: Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068
If a transaction proceeds to remove /etc/resolv.conf, not found errors become expected behavior. I've done multiple Mageia updates in the past two days, and exactly this happened in one of them.
 
1 members found this post helpful.
Old 12-07-2023, 12:18 AM   #3
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,575
Blog Entries: 19

Rep: Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453
If it is a resolution problem, you can temporarily fix it by creating a resolv.conf file and putting into it the line
Code:
nameserver local_ip_address_of_your_router
.
 
1 members found this post helpful.
Old 12-07-2023, 01:05 AM   #4
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,810
Blog Entries: 1

Rep: Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068
In a way, I did that in advance. /etc/resolv.conf here is replicated as /etc/resolv.conf.latest, so I need only copy the copy back over the broken one, or into the void left by whatever removal transaction.
 
Old 12-14-2023, 10:14 AM   #5
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,326

Original Poster
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
Thank you all for your responses. I'm been late getting back to this thread because, frankly, my brain is tired.

The odd thing is that websites seem to resolve properly.

I looked at my resolve.conf and found this. It points to a site belonging to my ISP.

Code:
# cat resolv.conf 
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 68.105.28.11
nameserver 68.105.29.11
nameserver 68.105.28.12
I did a web search for "edit reolve.conf mageia" and the results made my brain even more tired.

Can someone point me to nice, concise, clear tutorial on how to make the edit?

mrmazda, you said:

Quote:
If a transaction proceeds to remove /etc/resolv.conf, not found errors become expected behavior. I've done multiple Mageia updates in the past two days, and exactly this happened in one of them.
Just seeking clarity, by "remove" do you mean "delete"?

Again, thank you.

Last edited by frankbell; 12-14-2023 at 10:16 AM.
 
Old 12-14-2023, 02:18 PM   #6
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,810
Blog Entries: 1

Rep: Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068
Quote:
Originally Posted by frankbell View Post
mrmazda, you said:

Just seeking clarity, by "remove" do you mean "delete"?
They pretty much mean the same thing. However, one can cause the same intended effect with a mv (aka renaming) of resolv.conf to something like resolv.con, which deletes (aka removes) resolv.conf from the directory, replacing it with resolv.con. The file remains, but its original name does not, resulting in broken DNS, as if the file had been physically "deleted" (which we know isn't what delete {rm} actually does either).
 
Old 12-20-2023, 08:16 PM   #7
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,326

Original Poster
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
Thanks. I just wanted to make sure I understood you correctly. I oft for asking a stupid question over making a stupid mistake any day of the week and twice on Sundays.

I'll try some things tomorrow and let you all know what happens.

(Like I said, everything's working fine except the updates, so I am not in panic mode, at least not yet.)

Last edited by frankbell; 12-20-2023 at 09:14 PM. Reason: clarity
 
Old 12-29-2023, 08:57 PM   #8
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,326

Original Poster
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
Sorry for the delay, but it's the holidays and I've been distracted.

I deleted/remove resolv.conf, rebooted and got a new resolv.conf, just like the old resolv.conf.

I still get the same error when I try to run an update.

Code:
# urpmi --auto-update
mirror list not found
Could not find a mirror from mirrorlist $MIRRORLIST
I have also fired up drakconf and get a similar error when I try to updates:

Code:
Unable to update medium; it will be automatically disabled.

Errors:
mirror list not found
Could not find a mirror from mirrorlist $MIRRORLIST
Any additional suggestions as to where I might look would be greatly appreciated.

And, if you don't have any suggestions, thanks for trying.
 
Old 12-30-2023, 12:03 AM   #9
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,575
Blog Entries: 19

Rep: Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453
Quote:
Originally Posted by frankbell View Post
Any additional suggestions as to where I might look would be greatly appreciated.

And, if you don't have any suggestions, thanks for trying.
I know nothing about Red Hat package management but from the error message, it looks to me as if urpmi is a shell script, not a binary. In which case, you ought to be able to find out what $MIRRORLIST is set to and how it relates to the mirrors list file that you actually have.

Last edited by hazel; 12-30-2023 at 12:05 AM.
 
Old 12-30-2023, 07:24 AM   #10
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,810
Blog Entries: 1

Rep: Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068
Are you able to ping your router? As prequel to trying to do a follow-up here, I did a fresh Mageia 9 installation, with my NIC statically configured. ip a and ip route produced expected output, and I have a valid /etc/resolv.conf (same one used on the other 15 distros on that PC), but I couldn't do anything with it. Ping 127.0.0.1 worked, but none other. e.g. ping 192.168.<self> or router produced "ping: sendmsg: Operation not permitted", something I had never seen before. Then it dawned on me this was a default installation, something I hadn't done since early Mandrake days, and thus firewall must have been installed and enabled. Turning it off got everything network working. Did your upgrade add or change your firewall behavior?
 
Old 02-17-2024, 09:46 AM   #11
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,326

Original Poster
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
Just to wrap things up, I finally got around to doing a fresh install of Mageia v. 9. It went very smoothly.

Since I have a separate /home partition, the great majority of my existing configuration was retained. Firefox and Thunderbird, for example, worked just fine out of the box, with all configuration and plugins still functional.

I did have to install xscreensaver anew and no doubt I shall run across some other speed bumps along the way, but, generally, everything's okay and I can update and add software just fine.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to boot after online update . . kavinchat Linux - Newbie 3 10-23-2008 08:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mageia

All times are GMT -5. The time now is 05:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration