• Re: pkg update issue

    From Jeff Lloyd@lloydjbl@gmail.com to muc.lists.freebsd.stable on Fri Jan 9 06:00:18 2026
    From Newsgroup: muc.lists.freebsd.stable

    --000000000000f2b7b30647f26e35
    Content-Type: text/plain; charset="UTF-8"
    Content-Transfer-Encoding: quoted-printable

    Thank you for sharing!

    On Fri, Jan 9, 2026, 4:32=E2=80=AFAM Gerrit K=C3=BChn <gerrit.kuehn@aei.mpg=
    wrote:

    Hello all,

    I think I found and fixed the problem (and of course it was actually
    simple and all my fault, sorry for the noise):
    I had been running another dhclient manually on a second network
    interface on the machine which left the system with two default routes:

    ---
    # netstat -rn
    Routing tables

    Internet:
    Destination Gateway Flags Netif Expire
    default 192... UGS ice0
    default 10... UGS ice1
    [...]
    ---


    ssh and other things were still working fine, but pkg obviously wasn't
    happy. After removing the extra route it runs fast and without any
    error.

    I don't know how this messed up pkg, but "No error" was one of the most helpful error messages I've ever seen. ;-)


    cu
    Gerrit



    On Thu, 8 Jan 2026 16:35:18 +0100
    Gerrit K=C3=BChn <gerrit.kuehn@aei.mpg.de> wrote:

    Hello,

    I have two new systems freshly installed (and to my best knowledge identically) with FreeBSD 15.0 (via memstick image using the new
    "packaged base"). One updates the pkg database with "pkg update" just
    fine (and as expected).
    However, the other one complains with something like this (takes ages, obviously running into timeouts):

    ---
    # pkg update
    Updating FreeBSD-ports repository catalogue...
    pkg: Failed to
    fetch https://pkg.FreeBSD.org/FreeBSD:15:amd64/quarterly/meta.conf:
    No error pkg: Failed to fetch https://pkg.FreeBSD.org/FreeBSD:15:amd64/quarterly/meta.txz: No error repository FreeBSD-ports has no meta file, using default settings
    pkg: Failed to fetch https://pkg.FreeBSD.org/FreeBSD:15:amd64/quarterly/data.pkg: No error
    pkg: Failed to fetch https://pkg.FreeBSD.org/FreeBSD:15:amd64/quarterly/data.tzst: No
    error pkg: Failed to fetch https://pkg.FreeBSD.org/FreeBSD:15:amd64/quarterly/packagesite.pkg:
    No error Unable to update repository FreeBSD-ports Updating FreeBSD-ports-kmods repository catalogue.. pkg: Failed to fetch https://pkg.FreeBSD.org/FreeBSD:15:amd64/kmods_quarterly_0/meta.conf:
    No error pkg: Failed to fetch https://pkg.FreeBSD.org/FreeBSD:15:amd64/kmods_quarterly_0/meta.txz:
    No error repository FreeBSD-ports-kmods has no meta file, using
    default settings pkg: Failed to fetch https://pkg.FreeBSD.org/FreeBSD:15:amd64/kmods_quarterly_0/data.pkg:
    No error pkg: Failed to fetch https://pkg.FreeBSD.org/FreeBSD:15:amd64/kmods_quarterly_0/data.tzst:
    No error pkg: Failed to fetch

    https://pkg.FreeBSD.org/FreeBSD:15:amd64/kmods_quarterly_0/packagesite.pk=
    g
    :
    No error pkg: Failed to fetch

    https://pkg.FreeBSD.org/FreeBSD:15:amd64/kmods_quarterly_0/packagesite.tz=
    st
    :
    No error Unable to update repository FreeBSD-ports-kmods Updating FreeBSD-base repository catalogue... [...]
    ---


    The machines are on the same network, pkg.freebsd.org is reachable, I cannot see any difference in /etc/pkg/FreeBSD.conf,
    /usr/local/etc/pkg.conf and /usr/local/etc/pkg/repos/FreeBSD.conf
    settings (I did not touch any of these after installation, anyway). I
    am running a bit out of ideas here, no useful answer from websearch, either. What might be wrong?


    cu
    Gerrit


    --
    Dr. Gerrit Kuehn
    Max-Planck-Institut fuer Gravitationsphysik
    Albert-Einstein-Institut
    Callinstrasse 38
    30167 Hannover


    --000000000000f2b7b30647f26e35
    Content-Type: text/html; charset="UTF-8"
    Content-Transfer-Encoding: quoted-printable

    <div dir=3D"auto">Thank you for sharing!</div><br><div class=3D"gmail_quote=
    gmail_quote_container"><div dir=3D"ltr" class=3D"gmail_attr">On Fri, Jan 9=
    , 2026, 4:32=E2=80=AFAM Gerrit K=C3=BChn &lt;<a href=3D"mailto:gerrit.kuehn= @aei.mpg.de">gerrit.kuehn@aei.mpg.de</a>&gt; wrote:<br></div><blockquote cl= ass=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid=
    rgb(204,204,204);padding-left:1ex">Hello all,<br>

    I think I found and fixed the problem (and of course it was actually<br>
    simple and all my fault, sorry for the noise):<br>
    I had been running another dhclient manually on a second network<br>
    interface on the machine which left the system with two default routes:<br>

    ---<br>
    # netstat -rn<br>
    Routing tables<br>

    Internet:<br>
    Destination=C2=A0 =C2=A0 =C2=A0 =C2=A0 Gateway=C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 Flags=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Netif Expire<br> default=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 192...=C2=A0 =C2=A0 =C2=A0= UGS=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ice0<br>
    default=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 10...=C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0UGS=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ice1<br>
    [...]<br>
    ---<br>


    ssh and other things were still working fine, but pkg obviously wasn&#39;t<=

    happy. After removing the extra route it runs fast and without any<br> error.<br>

    I don&#39;t know how this messed up pkg, but &quot;No error&quot; was one o=
    f the most<br>
    helpful error messages I&#39;ve ever seen. ;-)<br>


    cu<br>
    =C2=A0 Gerrit<br>



    On Thu, 8 Jan 2026 16:35:18 +0100<br>
    Gerrit K=C3=BChn &lt;<a href=3D"mailto:gerrit.kuehn@aei.mpg.de" target=3D"_= blank" rel=3D"noreferrer">gerrit.kuehn@aei.mpg.de</a>&gt; wrote:<br>

    &gt; Hello,<br>
    &gt; <br>
    &gt; I have two new systems freshly installed (and to my best knowledge<br> &gt; identically) with FreeBSD 15.0 (via memstick image using the new<br>
    &gt; &quot;packaged base&quot;). One updates the pkg database with &quot;pk=
    g update&quot; just<br>
    &gt; fine (and as expected).<br>
    &gt; However, the other one complains with something like this (takes ages,=

    &gt; obviously running into timeouts):<br>
    &gt; <br>
    &gt; ---<br>
    &gt; # pkg update<br>
    &gt; Updating FreeBSD-ports repository catalogue...<br>
    &gt; pkg: Failed to<br>
    &gt; fetch <a href=3D"https://pkg.FreeBSD.org/FreeBSD:15:amd64/quarterly/me= ta.conf" rel=3D"noreferrer noreferrer" target=3D"_blank">https://pkg.FreeBS= D.org/FreeBSD:15:amd64/quarterly/meta.conf</a>:<br>
    &gt; No error pkg: Failed to fetch<br>
    &gt; <a href=3D"https://pkg.FreeBSD.org/FreeBSD:15:amd64/quarterly/meta.txz=
    " rel=3D"noreferrer noreferrer" target=3D"_blank">https://pkg.FreeBSD.org/F= reeBSD:15:amd64/quarterly/meta.txz</a>: No error<br>
    &gt; repository FreeBSD-ports has no meta file, using default settings<br>
    &gt; pkg: Failed to fetch<br>
    &gt; <a href=3D"https://pkg.FreeBSD.org/FreeBSD:15:amd64/quarterly/data.pkg=
    " rel=3D"noreferrer noreferrer" target=3D"_blank">https://pkg.FreeBSD.org/F= reeBSD:15:amd64/quarterly/data.pkg</a>: No error<br>
    &gt; pkg: Failed to fetch<br>
    &gt; <a href=3D"https://pkg.FreeBSD.org/FreeBSD:15:amd64/quarterly/data.tzs=
    t" rel=3D"noreferrer noreferrer" target=3D"_blank">https://pkg.FreeBSD.org/= FreeBSD:15:amd64/quarterly/data.tzst</a>: No<br>
    &gt; error pkg: Failed to fetch<br>
    &gt; <a href=3D"https://pkg.FreeBSD.org/FreeBSD:15:amd64/quarterly/packages= ite.pkg" rel=3D"noreferrer noreferrer" target=3D"_blank">https://pkg.FreeBS= D.org/FreeBSD:15:amd64/quarterly/packagesite.pkg</a>:<br>
    &gt; No error Unable to update repository FreeBSD-ports Updating<br>
    &gt; FreeBSD-ports-kmods repository catalogue.. pkg: Failed to fetch<br>
    &gt; <a href=3D"https://pkg.FreeBSD.org/FreeBSD:15:amd64/kmods_quarterly_0/= meta.conf" rel=3D"noreferrer noreferrer" target=3D"_blank">https://pkg.Free= BSD.org/FreeBSD:15:amd64/kmods_quarterly_0/meta.conf</a>:<br>
    &gt; No error pkg: Failed to fetch<br>
    &gt; <a href=3D"https://pkg.FreeBSD.org/FreeBSD:15:amd64/kmods_quarterly_0/= meta.txz" rel=3D"noreferrer noreferrer" target=3D"_blank">https://pkg.FreeB= SD.org/FreeBSD:15:amd64/kmods_quarterly_0/meta.txz</a>:<br>
    &gt; No error repository FreeBSD-ports-kmods has no meta file, using<br>
    &gt; default settings pkg: Failed to fetch<br>
    &gt; <a href=3D"https://pkg.FreeBSD.org/FreeBSD:15:amd64/kmods_quarterly_0/= data.pkg" rel=3D"noreferrer noreferrer" target=3D"_blank">https://pkg.FreeB= SD.org/FreeBSD:15:amd64/kmods_quarterly_0/data.pkg</a>:<br>
    &gt; No error pkg: Failed to fetch<br>
    &gt; <a href=3D"https://pkg.FreeBSD.org/FreeBSD:15:amd64/kmods_quarterly_0/= data.tzst" rel=3D"noreferrer noreferrer" target=3D"_blank">https://pkg.Free= BSD.org/FreeBSD:15:amd64/kmods_quarterly_0/data.tzst</a>:<br>
    &gt; No error pkg: Failed to fetch<br>
    &gt; <a href=3D"https://pkg.FreeBSD.org/FreeBSD:15:amd64/kmods_quarterly_0/= packagesite.pkg" rel=3D"noreferrer noreferrer" target=3D"_blank">https://pk= g.FreeBSD.org/FreeBSD:15:amd64/kmods_quarterly_0/packagesite.pkg</a>:<br>
    &gt; No error pkg: Failed to fetch<br>
    &gt; <a href=3D"https://pkg.FreeBSD.org/FreeBSD:15:amd64/kmods_quarterly_0/= packagesite.tzst" rel=3D"noreferrer noreferrer" target=3D"_blank">https://p= kg.FreeBSD.org/FreeBSD:15:amd64/kmods_quarterly_0/packagesite.tzst</a>:<br> &gt; No error Unable to update repository FreeBSD-ports-kmods Updating<br>
    &gt; FreeBSD-base repository catalogue... [...]<br>
    &gt; ---<br>
    &gt; <br>
    &gt; <br>
    &gt; The machines are on the same network, <a href=3D"http://pkg.freebsd.or=
    g" rel=3D"noreferrer noreferrer" target=3D"_blank">pkg.freebsd.org</a> is r= eachable, I<br>
    &gt; cannot see any difference in /etc/pkg/FreeBSD.conf,<br>
    &gt; /usr/local/etc/pkg.conf and /usr/local/etc/pkg/repos/FreeBSD.conf<br>
    &gt; settings (I did not touch any of these after installation, anyway). I<=

    &gt; am running a bit out of ideas here, no useful answer from websearch,<b=

    &gt; either. What might be wrong?<br>
    &gt; <br>
    &gt; <br>
    &gt; cu<br>
    &gt;=C2=A0 =C2=A0Gerrit<br>


    -- <br>
    Dr. Gerrit Kuehn<br>
    Max-Planck-Institut fuer Gravitationsphysik<br>
    Albert-Einstein-Institut<br>
    Callinstrasse 38<br>
    30167 Hannover<br>
    </blockquote></div>

    --000000000000f2b7b30647f26e35--


    --
    Posted automagically by a mail2news gateway at muc.de e.V.
    Please direct questions, flames, donations, etc. to news-admin@muc.de
    --- Synchronet 3.21a-Linux NewsLink 1.2