From owner-freebsd-questions@freebsd.org Sun Dec 18 22:46:54 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 598F9C87A56 for ; Sun, 18 Dec 2016 22:46:54 +0000 (UTC) (envelope-from francesco.scaglione@sfr.fr) Received: from smtp26.services.sfr.fr (smtp26.services.sfr.fr [93.17.128.163]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 10AF61DEE for ; Sun, 18 Dec 2016 22:46:53 +0000 (UTC) (envelope-from francesco.scaglione@sfr.fr) Received: from Stream (unknown [88.191.55.99]) by msfrf2607.sfr.fr (SMTP Server) with ESMTP id 5441B1C002433 for ; Sun, 18 Dec 2016 23:38:10 +0100 (CET) Received: from Stream (unknown [88.191.55.99]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: scaglione.francesco@neuf.fr) by msfrf2607.sfr.fr (SMTP Server) with ESMTPSA for ; Sun, 18 Dec 2016 23:38:06 +0100 (CET) Authentication-Results: sfr.fr; auth=pass (LOGIN) smtp.auth=scaglione.francesco@neuf.fr Date: Sun, 18 Dec 2016 23:38:05 +0100 From: francesco scaglione To: freebsd-questions@freebsd.org Subject: Re: Pkg problem after upgrading from 9.3 to 10.3 Message-ID: <20161218233805.1978ee55@Stream> In-Reply-To: References: <20161218154643.106f91f2@Stream> <55bca76f-bff9-d528-1096-1f5b7594c8c3@FreeBSD.org> <20161218183041.77f47019@Stream> X-Mailer: Claws Mail 3.14.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 X-sfr-mailing: LEGIT Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Dec 2016 22:46:54 -0000 On Sun, 18 Dec 2016 17:59:47 +0000 Matthew Seaman wrote: > On 18/12/2016 17:30, francesco scaglione wrote: > > On Sun, 18 Dec 2016 17:06:29 +0000 > > Matthew Seaman wrote: > > >> This sounds like a problem with the DNS -- although why should this > >> affect you after upgrading to 10.x? Did you switch to enabling the > >> local_unbound service when you upgraded? > > > > Uhm, I don't think so... I just answered "y" to a few "does this > > look reasonable to you" questions. How could I check this? > > Do you have: > > local_unbound_enable="YES" > > in /etc/rc.conf? Not now, no; was it there in 9.3? > >> What does this DNS query return for you? > >> > >> % dig IN SRV _http._tcp.pkg.freebsd.org > >> > >> That should give you a list of download sites with > >> 'pkgmir.geo.freebsd.org' marked as the highest priority. > >> Connecting to this repo by name will automatically direct you to > >> the closest package mirror to your location. That's > >> pkg0.bme.freebsd.org for people in Europe. > > > > Right, I've tried first with dig: > > > > $ dig IN SRV _http._tcp.pkg.freebsd.org > > dig: not found > > Heh. Yes, dig is no longer in the base system in 10.x. I reflexively > install bind-tools nowadays. > > > and then with drill: > > > > $ drill IN SRV _http._tcp.pkg.freebsd.org > > Warning: Could not create a resolver structure: Could not open the > > files ((null)) Try drill @localhost if you have a resolver running > > on your machine. > > OK, this isn't good. I suspect this is the cause of your problems. > > Try this. > > # sysrc local_unbound_enable=YES > # service local_unbound setup > # service local_unbound start # sysrc local_unbound_enable=YES local_unbound_enable: NO -> YES # service local_unbound setup Performing initial setup. Extracting forwarders from /etc/resolv.conf. /usr/sbin/local-unbound-setup: cannot open /etc/resolv.conf: No such file or directory No forwarders found in resolv.conf, unbound will recurse. /var/unbound/lan-zones.conf created /var/unbound/control.conf created /var/unbound/unbound.conf created /etc/resolvconf.conf created /usr/sbin/local-unbound-setup: cannot open /etc/resolv.conf: No such file or directory /etc/resolv.conf created # service local_unbound start Starting local_unbound. > and try again with drill(1). If there is still no joy, let us know > what the contents of /etc/resolv.conf and /var/unbound/forward.conf > are. # drill IN SRV _http._tcp.pkg.freebsd.org Error: error sending query: No (valid) nameservers defined in the resolver But at least, now I have: #pkg update Updating FreeBSD repository catalogue... Fetching meta.txz: 100% 944 B 0.9kB/s 00:01 Fetching packagesite.txz: 100% 6 MiB 2.0MB/s 00:03 Processing entries: 100% FreeBSD repository update completed. 25735 packages processed. # pkg upgrade Updating FreeBSD repository catalogue... FreeBSD repository is up-to-date. All repositories are up-to-date. Checking for upgrades (0 candidates): 100% Processing candidates (0 candidates): 100% Checking integrity... done (0 conflicting) Your packages are up to date. Should I be happy with that or shall I dig further? Thanks again for your attention, Francesco