Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Apr 2016 22:16:49 -0700 (MST)
From:      BBlister <bblister@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: invalid chunk added : please help me fix it
Message-ID:  <1459919809712-6089883.post@n5.nabble.com>
In-Reply-To: <57039DFE.7010309@FreeBSD.org>
References:  <1459853260874-6089694.post@n5.nabble.com> <57039DFE.7010309@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
root@bigb5:~ # uname -a
FreeBSD bigb5.vlsi.gr 9.3-STABLE FreeBSD 9.3-STABLE #5 r280395: Tue Mar 24
02:22:38 EET 2015     root@bigb5.vlsi.gr:/usr/obj/usr/src/sys/bigb5  amd64


root@bigb5:~ # ls -l /usr/local/etc/pkg/repos
ls: /usr/local/etc/pkg/repos: No such file or directory

pkg conf is empty

root@bigb5:~ # more /usr/local/etc/pkg.conf
root@bigb5:~ # ls -l /usr/local/etc/pkg.conf
-rw-r--r--  1 root  wheel  0 Jul 12  2014 /usr/local/etc/pkg.conf


pkg -vv
Version                 : 1.7.1
PKG_DBDIR = "/var/db/pkg";
PKG_CACHEDIR = "/var/cache/pkg";
PORTSDIR = "/usr/ports";
INDEXDIR = "";
INDEXFILE = "INDEX-9";
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:9:amd64";
ALTABI = "freebsd:9: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.7.1";
EVENT_PIPE = "";
FETCH_TIMEOUT = 30;
UNSET_TIMESTAMP = false;
SSH_RESTRICT_DIR = "";
PKG_ENV {
}
PKG_SSH_ARGS = "";
DEBUG_LEVEL = 0;
ALIAS {
}
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;


Repositories:
  FreeBSD: {
    url             : "pkg+http://pkg.FreeBSD.org/FreeBSD:9:amd64/latest",
    enabled         : yes,
    priority        : 0,
    mirror_type     : "SRV",
    signature_type  : "FINGERPRINTS",
    fingerprints    : "/usr/share/keys/pkg"
  }








I rm'ed the empty file pkg.conf  and now it seems that the above messages
have disappeared. I am not sure how the pkg.conf was emptied in the first
place. It used to work for many months without any problems.

On another FreeBSD machine that I had the same exact warning messages and
had some entries in the pkg.conf (attached bellow), I again rm'ed the file
and this upgrade works smoothly. Both machines are FreeBSD 9.3-STABLE.


So for me, everything seems to be ok!

Thanks!


[attached: This was on my pkg.conf which caused invalid chunk messages. I
rm'ed and the messages disappeared ]

[root@zafora /zstorage/home/mdasyg]# more /usr/local/etc/pkg.conf
# System-wide configuration file for pkg(8)
# For more information on the file format and
# options please refer to the pkg.conf(5) man page

# Configuration options
#PKG_DBDIR          : /var/db/pkg
#PKG_CACHEDIR       : /var/cache/pkg
#PORTSDIR           : /usr/ports
#PUBKEY             : /etc/ssl/pkg.conf
#HANDLE_RC_SCRIPTS  : NO
#ASSUME_ALWAYS_YES  : NO
#SYSLOG             : YES
#SHLIBS             : NO
#AUTODEPS           : NO
#PORTAUDIT_SITE     : http://portaudit.FreeBSD.org/auditfile.tbz
#PKG_PLUGINS_DIR    : /usr/local/lib/pkg/plugins
#PKG_ENABLE_PLUGINS : YES
#PLUGINS            : [commands/mystat]
#REPO_AUTOUPDATE    : YES
ALIAS              : {
  all-depends: query %dn-%dv,
  annotations: info -A,
  build-depends: info -qd,
  download: fetch,
  iinfo: info -i -g -x,
  isearch: search -i -g -x,
  leaf: query -e "%a == 0" "%n-%v",
  leaf: query -e "%a == 0" "%n-%v",
  list: info -ql,
  origin: info -qo,
  provided-depends: info -qb,
  raw: info -R,
  required-depends: info -qr,
  shared-depends: info -qB,
  show: info -f -k,
  size: info -sq,
  }

and

[root@zafora /zstorage/home/mdasyg]# pkg -v
1.7.1






--
View this message in context: http://freebsd.1045724.n5.nabble.com/invalid-chunk-added-please-help-me-fix-it-tp6089694p6089883.html
Sent from the freebsd-questions mailing list archive at Nabble.com.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1459919809712-6089883.post>