From owner-freebsd-questions@freebsd.org Sun Dec 18 17:36:53 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 01DB4C85283 for ; Sun, 18 Dec 2016 17:36:53 +0000 (UTC) (envelope-from francesco.scaglione@sfr.fr) Received: from smtp26.services.sfr.fr (smtp26.services.sfr.fr [93.17.128.10]) (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 BFEF8C85 for ; Sun, 18 Dec 2016 17:36:52 +0000 (UTC) (envelope-from francesco.scaglione@sfr.fr) Received: from Stream (unknown [88.191.55.99]) by msfrf2620.sfr.fr (SMTP Server) with ESMTP id 1F72A1C000432 for ; Sun, 18 Dec 2016 18:30:59 +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 msfrf2620.sfr.fr (SMTP Server) with ESMTPSA for ; Sun, 18 Dec 2016 18:30:58 +0100 (CET) Authentication-Results: sfr.fr; auth=pass (LOGIN) smtp.auth=scaglione.francesco@neuf.fr Date: Sun, 18 Dec 2016 18:30:41 +0100 From: francesco scaglione To: freebsd-questions@freebsd.org Subject: Re: Pkg problem after upgrading from 9.3 to 10.3 Message-ID: <20161218183041.77f47019@Stream> In-Reply-To: <55bca76f-bff9-d528-1096-1f5b7594c8c3@FreeBSD.org> References: <20161218154643.106f91f2@Stream> <55bca76f-bff9-d528-1096-1f5b7594c8c3@FreeBSD.org> 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 17:36:53 -0000 On Sun, 18 Dec 2016 17:06:29 +0000 Matthew Seaman wrote: > On 18/12/2016 14:46, francesco scaglione wrote: > > After the upgrade (done following with care the Handbook) I get this > > error: > > > > # pkg update > > Updating FreeBSD repository catalogue... > > pkg: http://pkg.FreeBSD.org/FreeBSD:10:amd64/latest/meta.txz: No > > address record > > repository FreeBSD has no meta file, using default settings > > pkg: > > http://pkg.FreeBSD.org/FreeBSD:10:amd64/latest/packagesite.txz: No > > address record Unable to update repository FreeBSD > > 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? > 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 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. > > These are my two FreeBSD.conf (I guess only the second one is used): > > > > # cat pkg/FreeBSD.conf > > # $FreeBSD: releng/10.3/etc/pkg/FreeBSD.conf 296373 2016-03-04 > > 01:27:38Z marius $ > > # > > # To disable this repository, instead of modifying or removing this > > file, > > # create a /usr/local/etc/pkg/repos/FreeBSD.conf file: > > # > > # mkdir -p /usr/local/etc/pkg/repos > > # echo "FreeBSD: { enabled: no }" > >> /usr/local/etc/pkg/repos/FreeBSD.conf > > # > > > > FreeBSD: { > > url: "pkg+http://pkg.FreeBSD.org/${ABI}/quarterly", > > mirror_type: "srv", > > signature_type: "fingerprints", > > fingerprints: "/usr/share/keys/pkg", > > enabled: yes > > } > > --- > > # cat /usr/local/etc/pkg/repos/FreeBSD.conf > > FreeBSD: { > > url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest", > > mirror_type: "srv", > > enabled: yes > > } > > --- > > > > I've read that on 10.3 the "Quarterly" repo is the default, isn't? > > Should I delete the /usr/local/etc/pkg/repos/FreeBSD.conf file and > > try again? > > The quarterly repo is the default nowadays, but you can certainly use > the latest package set if you want to. Using quarterly vs latest > shouldn't have any bearing on the problems you're experiencing though. > > Due to the way pkg.conf(5) works, if you have a > /usr/local/etc/pkg/repos/anything.conf that defines a 'FreeBSD' tag -- > this will be merged with the settings from /etc/pkg/FreeBSD.conf. You > can see what the resulting configuration is by running 'pkg -vv' This is the output: $ pkg -vv Version : 1.9.4 PKG_DBDIR = "/var/db/pkg"; PKG_CACHEDIR = "/var/cache/pkg"; PORTSDIR = "/usr/ports"; INDEXDIR = ""; INDEXFILE = "INDEX-10"; HANDLE_RC_SCRIPTS = false; DEFAULT_ALWAYS_YES = false; ASSUME_ALWAYS_YES = false; REPOS_DIR [ "/etc/pkg/", "/usr/local/etc/pkg/repos/", ] PLIST_KEYWORDS_DIR = ""; SYSLOG = true; ABI = "FreeBSD:10:amd64"; ALTABI = "freebsd:10:x86:64"; DEVELOPER_MODE = false; VULNXML_SITE = "http://vuxml.freebsd.org/freebsd/vuln.xml.bz2"; FETCH_RETRY = 3; PKG_PLUGINS_DIR = "/usr/local/lib/pkg/"; PKG_ENABLE_PLUGINS = true; PLUGINS [ ] DEBUG_SCRIPTS = false; PLUGINS_CONF_DIR = "/usr/local/etc/pkg/"; PERMISSIVE = false; REPO_AUTOUPDATE = true; NAMESERVER = ""; HTTP_USER_AGENT = "pkg/1.9.4"; EVENT_PIPE = ""; FETCH_TIMEOUT = 30; UNSET_TIMESTAMP = false; SSH_RESTRICT_DIR = ""; PKG_ENV { } PKG_SSH_ARGS = ""; DEBUG_LEVEL = 0; ALIAS { all-depends = "query %dn-%dv"; annotations = "info -A"; build-depends = "info -qd"; cinfo = "info -Cx"; comment = "query -i \"%c\""; csearch = "search -Cx"; desc = "query -i \"%e\""; download = "fetch"; iinfo = "info -ix"; isearch = "search -ix"; prime-list = "query -e '%a = 0' '%n'"; leaf = "query -e '%#r == 0' '%n-%v'"; list = "info -ql"; noauto = "query -e '%a == 0' '%n-%v'"; options = "query -i \"%n - %Ok: %Ov\""; origin = "info -qo"; provided-depends = "info -qb"; raw = "info -R"; required-depends = "info -qr"; roptions = "rquery -i \"%n - %Ok: %Ov\""; shared-depends = "info -qB"; show = "info -f -k"; size = "info -sq"; } CUDF_SOLVER = ""; SAT_SOLVER = ""; RUN_SCRIPTS = true; CASE_SENSITIVE_MATCH = false; LOCK_WAIT = 1; LOCK_RETRIES = 5; SQLITE_PROFILE = false; WORKERS_COUNT = 0; READ_LOCK = false; PLIST_ACCEPT_DIRECTORIES = false; IP_VERSION = 0; AUTOMERGE = true; VERSION_SOURCE = ""; CONSERVATIVE_UPGRADE = true; PKG_CREATE_VERBOSE = false; AUTOCLEAN = false; DOT_FILE = ""; REPOSITORIES { } VALID_URL_SCHEME [ "pkg+http", "pkg+https", "https", "http", "file", "ssh", "ftp", "ftps", "pkg+ssh", "pkg+ftp", "pkg+ftps", ] ALLOW_BASE_SHLIBS = false; WARN_SIZE_LIMIT = 1048576; METALOG = ""; Repositories: FreeBSD: { url : "pkg+http://pkg.FreeBSD.org/FreeBSD:10:amd64/latest", enabled : yes, priority : 0, mirror_type : "SRV", signature_type : "FINGERPRINTS", fingerprints : "/usr/share/keys/pkg" } > Cheers, > > Matthew Thank you very much for your help, Matthew. Francesco