Jump to content

Pacman Issue on Arch Linux

Go to solution Solved by Sauron,
10 minutes ago, ArchTorvalds said:

I'm using VMWare. The network adapter is NAT. How to fix this?

Did you just finish your installation, or did it work before and now it doesn't? If you just finished your installation, simply enable the dhcp service:

sudo systemctl start dhcpcd
sudo systemctl enable dhcpcd

 

Hello everyone. I have a problem with Pacman. I think the database is old. What's wrong with Pacman?

 

I get this error:

Quote

not resolve host: mirror.lastmikoi.net

warning: failed to retrieve some files

error: failed to commit transaction (download library error)

Errors occurred, no packages were upgraded.

 

 

Information about my Arch Linux:

Quote

Linux archlinux 4.19.2-arch1-1-ARCH #1 PREEMPT Tue Nov 13 21:16:19 UTC 2018 x86_64 GNU/Linux

 

Link to comment
https://linustechtips.com/topic/999146-pacman-issue-on-arch-linux/
Share on other sites

Link to post
Share on other sites

4 minutes ago, Sauron said:

Did you run


pacman -Syy

?

I get an error again:

Quote

error: failed retrieving file 'community.db' from mirror.lastmikoi.net : Could not resolve host: mirror.lastmikoi.net

error: failed to update community (download library error)

error: failed to synchronize all databases

 

 

Link to post
Share on other sites

10 minutes ago, ArchTorvalds said:

I get an error again:

All right, this could mean a few things:

1) you don't have an internet connection

You can check this by running:

ping 8.8.8.8

if it works, you are connected to the internet - otherwise it should say "network is unreachable"

 

2) you have an internet connection, but your dns server isn't working or is set up incorrectly

If you could ping 8.8.8.8 without any problems, try:

ping www.google.com

if the DNS is set up correctly, it will work just like before - otherwise, it will complain that it cannot resolve the host

 

3) you have an outdated mirror list

If both pings worked fine, the problem is probably in your mirror list. To solve this issue, replace

/etc/pacman.d/mirrorlist

with the file found here. Uncomment the line with a mirror close to your country and run

pacman -Syy

again.

Don't ask to ask, just ask... please 🤨

sudo chmod -R 000 /*

Link to post
Share on other sites

1 hour ago, ArchTorvalds said:

ping 8.8.8.8:

 

ping www.google.com:

I think I found the error.

 

41 minutes ago, ArchTorvalds said:

Ok. I finally copied this mirrorlist file to /etc/pacman.d/ directory. But which mirror site would you recommend?

If it says "network is unreachable" it means you don't have an internet connection... that's the problem, not the mirrorlist. Is this a new installation or...?

 

Either way, once you have your connection working you should pick any mirror from your country, preferably more than one so you have a fallback if one is down for some reason.

Don't ask to ask, just ask... please 🤨

sudo chmod -R 000 /*

Link to post
Share on other sites

3 hours ago, Sauron said:

 

If it says "network is unreachable" it means you don't have an internet connection... that's the problem, not the mirrorlist. Is this a new installation or...?

 

Either way, once you have your connection working you should pick any mirror from your country, preferably more than one so you have a fallback if one is down for some reason.

I'm using VMWare. The network adapter is NAT. How to fix this?

Link to post
Share on other sites

10 minutes ago, ArchTorvalds said:

I'm using VMWare. The network adapter is NAT. How to fix this?

Did you just finish your installation, or did it work before and now it doesn't? If you just finished your installation, simply enable the dhcp service:

sudo systemctl start dhcpcd
sudo systemctl enable dhcpcd

 

Don't ask to ask, just ask... please 🤨

sudo chmod -R 000 /*

Link to post
Share on other sites

5 minutes ago, Sauron said:

Did you just finish your installation, or did it work before and now it doesn't? If you just finished your installation, simply enable the dhcp service:


sudo systemctl start dhcpcd
sudo systemctl enable dhcpcd

 

Now it works finally. Thanks!

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×