You are not logged in.

#1 2014-02-19 06:10:58

ibexmonj
Member
Registered: 2014-01-21
Posts: 9

not sure if an update broke pacman and resolv.conf

Hey guys

          Sorry about these noobish questions but I have googled and i just cant seem to find a solution.


Couple of things.

First, I did a "pacman -Syu" and update the system earlier today.

Then, I tried installing a package and i saw pacman cold not connect to mirrors. I did some search on the forums and people were pointing at resolv.conf issues. So i looked there and turns out I had

nameserver 192.168.1.1
as the only line listed so i fixed it to google servers and also restarted for the sake of it.

after restart,
I noticed my resolv.conf had these lines

# Generated by Connection Manager
nameserver 127.0.0.1
nameserver ::1

    How do i find what network manager i am using and what program is doing this ?
I couldnt connect to the internet with this.

so i went ahead and added the "8.8.8.8" server and i could connect just fine.

Not sure what caused this my machine was just fine before the "pacman -Syu" update. How do i check what packages were updated most recently ?




2. I just cannot seem to connect to the mirrors anymore although i am connected to the internet just fine.

Note: I did not change any config files unless the update changed these recently.

Here is what i see

[ibexmonj@ssy1 ~]$ sudo pacman -Syy
:: Synchronizing package databases...
error: failed retrieving file 'core.db' from mirror.rit.edu : Resolving timed out after 10519 milliseconds
error: failed retrieving file 'core.db' from lug.mtu.edu : Resolving timed out after 10518 milliseconds
error: failed retrieving file 'core.db' from mir.archlinux.fr : Resolving timed out after 10518 milliseconds
error: failed retrieving file 'core.db' from archlinux.surlyjake.com : Resolving timed out after 10519 milliseconds
error: failed retrieving file 'core.db' from mirror.bytemark.co.uk : Resolving timed out after 10519 milliseconds
error: failed retrieving file 'core.db' from mirrors.liquidweb.com : Resolving timed out after 10520 milliseconds
error: failed retrieving file 'core.db' from archlinux.mirrors.uk2.net : Resolving timed out after 10519 milliseconds
error: failed retrieving file 'core.db' from archlinux.openlabto.org : Resolving timed out after 10519 milliseconds
error: failed retrieving file 'core.db' from mirror.datacenter.by : Resolving timed out after 10521 milliseconds
error: failed retrieving file 'core.db' from mirror.chmuri.net : Resolving timed out after 10519 milliseconds
error: failed retrieving file 'core.db' from ftp5.gwdg.de : Resolving timed out after 10520 milliseconds
error: failed retrieving file 'core.db' from mirror.selfnet.de : Resolving timed out after 10520 milliseconds
error: failed retrieving file 'core.db' from mirror.yandex.ru : Resolving timed out after 10518 milliseconds
error: failed retrieving file 'core.db' from archlinux.c3sl.ufpr.br : Resolving timed out after 10518 milliseconds
error: failed retrieving file 'core.db' from arch.apt-get.eu : Resolving timed out after 10519 millise

Here is my pacman.conf

#
# /etc/pacman.conf
#
# See the pacman.conf(5) manpage for option and repository directives

#
# GENERAL OPTIONS
#
[options]
# The following paths are commented out with their default values listed.
# If you wish to use different paths, uncomment and update the paths.
#RootDir     = /
#DBPath      = /var/lib/pacman/
#CacheDir    = /var/cache/pacman/pkg/
#LogFile     = /var/log/pacman.log
#GPGDir      = /etc/pacman.d/gnupg/
HoldPkg     = pacman glibc
# If upgrades are available for these packages they will be asked for first
#SyncFirst   = pacman
#XferCommand = /usr/bin/curl -C - -f %u > %o
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
#CleanMethod = KeepInstalled
Architecture = auto

# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
#IgnorePkg   =
#IgnoreGroup =

#NoUpgrade   =
#NoExtract   =

# Misc options
#UseSyslog
#UseDelta
#TotalDownload
CheckSpace
#VerbosePkgLists

# By default, pacman accepts packages signed by keys that its local keyring
# trusts (see pacman-key and its man page), as well as unsigned packages.
#SigLevel = Optional TrustedOnly

# NOTE: You must run `pacman-key --init` before first using pacman; the local
# keyring can then be populated with the keys of all official Arch Linux
# packagers with `pacman-key --populate archlinux`.

#
# REPOSITORIES
#   - can be defined here or included from another file
#   - pacman will search repositories in the order defined here
#   - local/custom mirrors can be added here or in separate files
#   - repositories listed first will take precedence when packages
#     have identical names, regardless of version number
#   - URLs will have $repo replaced by the name of the current repo
#   - URLs will have $arch replaced by the name of the architecture
#
# Repository entries are of the format:
#       [repo-name]
#       Server = ServerName
#       Include = IncludePath
#
# The header [repo-name] is crucial - it must be present and
# uncommented to enable the repo.
#

# The testing repositories are disabled by default. To enable, uncomment the
# repo name header and Include lines. You can add preferred servers immediately
# after the header, and they will be used before the default mirrors.

#[testing]
#SigLevel = PackageRequired
#Include = /etc/pacman.d/mirrorlist

[core]
SigLevel = PackageRequired
Include = /etc/pacman.d/mirrorlist

[extra]
SigLevel = PackageRequired
Include = /etc/pacman.d/mirrorlist

#[community-testing]
#SigLevel = PackageRequired
#Include = /etc/pacman.d/mirrorlist

[community]
SigLevel = PackageRequired
Include = /etc/pacman.d/mirrorlist

# If you want to run 32 bit applications on your x86_64 system,
# enable the multilib repositories as required here.

#[multilib-testing]
#SigLevel = PackageRequired
#Include = /etc/pacman.d/mirrorlist

[multilib]
SigLevel = PackageRequired
Include = /etc/pacman.d/mirrorlist

# An example of a custom package repository.  See the pacman manpage for
# tips on creating your own repositories.
#[custom]
#SigLevel = Optional TrustAll
#Server = file:///home/custompkgs

My mirrorlist agreed its old but rankmirrors is also timing out

##
## Arch Linux repository mirrorlist
## Sorted by mirror score from mirror status page
## Generated on 2013-03-01
##

## Score: 0.3, United States
#Server = [url]http://mirror.us.leaseweb.net/archlinux/$repo/os/$arch[/url]
## Score: 0.5, Germany
#Server = [url]http://mirror.de.leaseweb.net/archlinux/$repo/os/$arch[/url]
## Score: 0.5, Netherlands
#Server = [url]http://mirror.nl.leaseweb.net/archlinux/$repo/os/$arch[/url]
## Score: 0.7, United States
Server = [url]http://mirror.rit.edu/archlinux/$repo/os/$arch[/url]
## Score: 0.7, Germany
#Server = [url]http://ftp.tuxdroid.org/archlinux/$repo/os/$arch[/url]
## Score: 0.7, Germany
#Server = [url]http://archlinux.limun.org/$repo/os/$arch[/url]
## Score: 0.8, United States
Server = [url]http://lug.mtu.edu/archlinux/$repo/os/$arch[/url]
## Score: 0.9, France
Server = [url]http://mir.archlinux.fr/$repo/os/$arch[/url]
## Score: 0.9, United States
...
...
...


Please help guys

Last edited by ibexmonj (2014-02-19 06:26:16)

Offline

#2 2014-02-19 06:18:28

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: not sure if an update broke pacman and resolv.conf

ibexmonj wrote:

How do i find what network manager i am using and what program is doing this ?

That depends on how you connect to the Internet. I'm guessing Gnome/networkmanager.

How do i check what packages were updated most recently ?

pacman's log.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2014-02-19 06:24:46

ibexmonj
Member
Registered: 2014-01-21
Posts: 9

Re: not sure if an update broke pacman and resolv.conf

I only have a ethernet connection on my desktop  and i believe the only thing i setup (its been a while ) was dhcpcd
so i even added "nohook resolv.conf" to /etc/dhcpcd.conf and after i reboot its still been overwritten



and here is the pacman log for the packages i was able to update just a couple of hours ago.

before this there was an update i did on 2/12 and that went fine as well. And i remember doing a few restarts then too.

not sure what i messed up here.

[2014-02-18 22:28] [PACMAN] synchronizing package lists
[2014-02-18 22:32] [PACMAN] Running 'pacman -Syyu'
[2014-02-18 22:32] [PACMAN] synchronizing package lists
[2014-02-18 22:40] [PACMAN] Running 'pacman -Syyu'
[2014-02-18 22:40] [PACMAN] synchronizing package lists
[2014-02-18 22:43] [PACMAN] Running 'pacman -Syyu'
[2014-02-18 22:43] [PACMAN] synchronizing package lists
[2014-02-18 22:44] [PACMAN] starting full system upgrade
[2014-02-18 22:45] [PACMAN] removed libusbx (1.0.17-1)
[2014-02-18 22:45] [PACMAN] upgraded imagemagick (6.8.8.4-2 -> 6.8.8.6-1)
[2014-02-18 22:45] [ALPM] warning: directory permissions differ on /var/db/
filesystem: 775  package: 755
[2014-02-18 22:45] [ALPM-SCRIPTLET] Generating locales...
[2014-02-18 22:45] [ALPM-SCRIPTLET]   en_US.UTF-8... done
[2014-02-18 22:45] [ALPM-SCRIPTLET] Generation complete.
[2014-02-18 22:45] [PACMAN] upgraded glibc (2.19-1 -> 2.19-2)
[2014-02-18 22:45] [PACMAN] installed libusb (1.0.18-1)
[2014-02-18 22:45] [PACMAN] upgraded calibre (1.23.0-1 -> 1.24.0-1)
[2014-02-18 22:45] [PACMAN] upgraded cups-filters (1.0.44-2 -> 1.0.45-1)
[2014-02-18 22:45] [PACMAN] upgraded dbus-glib (0.100.2-1 -> 0.102-1)
[2014-02-18 22:45] [PACMAN] upgraded file (5.16-1 -> 5.17-1)
[2014-02-18 22:45] [PACMAN] upgraded hicolor-icon-theme (0.12-2 -> 0.13-1)
[2014-02-18 22:45] [PACMAN] upgraded sqlite (3.8.3-1 -> 3.8.3.1-1)
[2014-02-18 22:45] [PACMAN] upgraded firefox (27.0-1 -> 27.0.1-1)
[2014-02-18 22:45] [PACMAN] upgraded flex (2.5.37-1 -> 2.5.38-1)
[2014-02-18 22:45] [PACMAN] upgraded libpng (1.6.8-1 -> 1.6.9-1)
[2014-02-18 22:45] [PACMAN] upgraded gdk-pixbuf2 (2.30.4-1 -> 2.30.5-1)
[2014-02-18 22:45] [PACMAN] upgraded geoclue2 (1.99.4-1 -> 2.0.0-1)
[2014-02-18 22:45] [PACMAN] upgraded perl-error (0.17021-1 -> 0.17022-1)
[2014-02-18 22:45] [PACMAN] upgraded git (1.8.5.4-1 -> 1.9.0-1)
[2014-02-18 22:45] [PACMAN] upgraded gnome-control-center (3.10.2-1 -> 3.10.2-2)
[2014-02-18 22:45] [PACMAN] upgraded p11-kit (0.20.1-1 -> 0.20.2-1)
[2014-02-18 22:45] [PACMAN] upgraded gnutls (3.2.10-1 -> 3.2.11-1)
[2014-02-18 22:45] [PACMAN] upgraded totem-plparser (3.10.0-4 -> 3.10.1-1)
[2014-02-18 22:45] [PACMAN] upgraded grilo (0.2.8-1 -> 0.2.9-1)
[2014-02-18 22:45] [PACMAN] upgraded harfbuzz (0.9.24-1 -> 0.9.26-1)
[2014-02-18 22:45] [PACMAN] upgraded harfbuzz-icu (0.9.24-1 -> 0.9.26-1)
[2014-02-18 22:45] [PACMAN] upgraded help2man (1.43.3-1 -> 1.44.1-1)
[2014-02-18 22:45] [PACMAN] upgraded man-pages (3.57-1 -> 3.58-1)
[2014-02-18 22:45] [PACMAN] upgraded mpg123 (1.18.0-1 -> 1.18.1-1)
[2014-02-18 22:45] [PACMAN] upgraded python2 (2.7.6-1 -> 2.7.6-2)
[2014-02-18 22:45] [PACMAN] upgraded pcsclite (1.8.10-1 -> 1.8.11-1)
[2014-02-18 22:45] [PACMAN] upgraded perl-net-ssleay (1.56-1 -> 1.58-1)
[2014-02-18 22:45] [PACMAN] upgraded perl-io-socket-ssl (1.962-1 -> 1.967-1)
[2014-02-18 22:45] [PACMAN] upgraded pycups (1.9.63-1 -> 1.9.66-1)
[2014-02-18 22:45] [PACMAN] upgraded python (3.3.3-1 -> 3.3.4-1)
[2014-02-18 22:45] [PACMAN] upgraded t1lib (5.1.2-4 -> 5.1.2-5)
[2014-02-18 22:45] [PACMAN] upgraded udisks2 (2.1.1-3 -> 2.1.2-1)

Last edited by ibexmonj (2014-02-19 06:26:48)

Offline

#4 2014-02-19 07:07:06

ibexmonj
Member
Registered: 2014-01-21
Posts: 9

Re: not sure if an update broke pacman and resolv.conf

aah dumb move

i had "Open DNS filetering"set to ON for my router and looks like that was blocking this.

so 1 problem remains the resolv.conf is still being overwritten

this is what i have in my resolv.conf after reboot

# Generated by Connection Manager
nameserver 127.0.0.1
nameserver ::1

even though in my dhcpcd.conf i have this line for nohook resol.conf

# A hook script is provided to lookup the hostname if not set by the DHCP
# server, but it should not be run by default.
nohook resolv.conf
nohook lookup-hostname
noipv4ll
noipv6rs

any tips ?

Offline

#5 2014-02-19 07:33:54

alezost
Member
Registered: 2013-10-17
Posts: 61

Re: not sure if an update broke pacman and resolv.conf

For me the first line of resolv.conf is:

# Generated by dhcpcd from enp0s11

not:

# Generated by Connection Manager

I think the problem is not in dhcpcd, perhaps you have some other network thing configured.

Offline

#6 2014-02-19 07:36:55

ibexmonj
Member
Registered: 2014-01-21
Posts: 9

Re: not sure if an update broke pacman and resolv.conf

Oh damn. I thought all i had was dhcpcd

Guess i havr to check config files for netctl, networkmanager

Wonder if there is a way to check what connection manager i have active

Offline

#7 2014-02-19 12:31:13

Neburski
Member
Registered: 2009-09-15
Posts: 118

Re: not sure if an update broke pacman and resolv.conf

Offline

#8 2014-02-19 14:08:30

ibexmonj
Member
Registered: 2014-01-21
Posts: 9

Re: not sure if an update broke pacman and resolv.conf

ok so i see networkmanager.service and netcfg.service but all these are diabled. So not sure what is writing resolv.conf after a restart.


Here is what is enabled

sudo systemctl list-unit-files | grep enabled
connman.service                            enabled 
couchpotato.service                        enabled 
ddclient.service                           enabled 
dhcpcd@.service                            enabled 
display-manager.service                    enabled 
dkms.service                               enabled 
gdm.service                                enabled 
getty@.service                             enabled 
iptables.service                           enabled 
ntop.service                               enabled 
ntpd.service                               enabled 
plexmediaserver.service                    enabled 
sabnzbd.service                            enabled 
sickbeard.service                          enabled 
sshd.service                               enabled 
synergys.service                           enabled 
x11vnc.service                             enabled 
remote-fs.target                           enabled 

Offline

#9 2014-02-19 14:55:16

mrunion
Member
From: Jonesborough, TN
Registered: 2007-01-26
Posts: 1,938
Website

Re: not sure if an update broke pacman and resolv.conf

connman.service is Enlightenment's connection manager. Are you/have you ran Enlightenment and installed connman? Disable connman.service if you don't want to use connman.


Matt

"It is very difficult to educate the educated."

Offline

#10 2014-02-19 15:00:01

ibexmonj
Member
Registered: 2014-01-21
Posts: 9

Re: not sure if an update broke pacman and resolv.conf

thank you sir. will disable that and restart


my fault. i tried and installed a lot of DE/WM until i settled on i3 and no DE

i need to go through pacman history too and uninstall stuff. Need to look that up

Offline

#11 2014-02-19 15:36:11

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,636

Re: not sure if an update broke pacman and resolv.conf

mrunion wrote:

connman.service is Enlightenment's connection manager. Are you/have you ran Enlightenment and installed connman? Disable connman.service if you don't want to use connman.

Just to clarify, Enlightenment uses connman, but it's a totally separate project that has nothing do with Enlightenment. IIRC, it's an Intel project.

Offline

#12 2014-02-19 16:30:19

ibexmonj
Member
Registered: 2014-01-21
Posts: 9

Re: not sure if an update broke pacman and resolv.conf

oh thanks. i definitely didnt know that.
wonder why i setup it up. probably cos i wanted it in the sys tray. no idea

anyways i disabled the daemon and uninstalled it and i believe i only have dhcpcd now which should be enough correct ?


Scimmia wrote:
mrunion wrote:

connman.service is Enlightenment's connection manager. Are you/have you ran Enlightenment and installed connman? Disable connman.service if you don't want to use connman.

Just to clarify, Enlightenment uses connman, but it's a totally separate project that has nothing do with Enlightenment. IIRC, it's an Intel project.

Offline

#13 2014-02-19 20:08:31

mrunion
Member
From: Jonesborough, TN
Registered: 2007-01-26
Posts: 1,938
Website

Re: not sure if an update broke pacman and resolv.conf

Scimmia wrote:
mrunion wrote:

connman.service is Enlightenment's connection manager. Are you/have you ran Enlightenment and installed connman? Disable connman.service if you don't want to use connman.

Just to clarify, Enlightenment uses connman, but it's a totally separate project that has nothing do with Enlightenment. IIRC, it's an Intel project.

Thanks for the clarification -- I learn something new every day!


Matt

"It is very difficult to educate the educated."

Offline

Board footer

Powered by FluxBB