First time trying out BSD, slow package manager downloads. reddit / BSD ---------------------------------------------------------------------- metadududu · 2021-09-10 18:14 Hi!, thank you for taking the time of reading my post. I'm currently running GNU/Linux, and I wanted to start moving on to BSD. I tried installing NetBSD, and FreeBSD, and I have had the same problem with both. Both installed successfully, but the package manager is really slow, I think in terms of internet connection. Once I logged into root I pinged in order to verify I setup my internet connection and it seems to be fine. But when I want to install something (Like Xorg), it takes like 30-40 times more than it should, I'm not exagerating, like small packages that would take a couple of seconds, it takes like 25 minutes. Any help is appreaciated and tank you in advance. ---------------------------------------------------------------------- derPostmann · 2021-09-10 19:04 That's strange. How do you install - from ports (or pkgsrc in case of NetBSD) or from binary packages with pkg (or pkgin in case of NetBSD)? ---------------------------------------------------------------------- metadududu · 2021-09-10 19:31 I downloaded the bootable IMG from here: https://wiki.netbsd.org/ports/amd64/ ---------------------------------------------------------------------- OIHipster112 · 2021-09-10 19:40 I think he/she is referring to the repositories rather than the image itself. Maybe look at the mirrors? ---------------------------------------------------------------------- _Elementary_ · 2021-09-10 19:41 That was not the question. How do you install packages? ---------------------------------------------------------------------- [deleted] · 2021-09-10 19:48 [deleted] ---------------------------------------------------------------------- reddit_original · 2021-09-10 19:49 >the package manager is really slow, I think in terms of internet connection. Let me guess. You're in Europe, right? ---------------------------------------------------------------------- metadududu · 2021-09-10 20:10 No, I'm in America :( and the ping to google doesn't have any abnormal latencies :( everything seems to be fine ---------------------------------------------------------------------- metadududu · 2021-09-10 20:13 Ohh, I'm sorry, in FreeBSD I use pkg install, and then it said the package manager must be installed first, and it asks if I wanna install it, I reply yes, and that's when it seems to really slow down, since it stays there, no error, and will eventually install it, but there's no aditional verbose, it's just really slow in the first stage of downloading/installing anything. ---------------------------------------------------------------------- survivorofthefire · 2021-09-10 21:49 Sometimes you may notice the mirrors you're using may just be under heavier traffic than typical and may buckle a bit under the weight. Perfectly normal with FOSS mirrors in my experience, ive seen the same on multiple Linux distributions. Give it maybe another half-day or so and try again. > Once I logged into root I pinged in order to verify I setup my internet connection and it seems to be fine Especially if your pings seem to be normal, it may just be the servers themselves having a bad day. Give it a bit and it may resolve itself. :] ---------------------------------------------------------------------- tcmart14 · 2021-09-10 22:16 I have a similar issue, however I think mine stems from how my ISP handles the traffic. Something you can look into. For me, all my packets seem to get routed via a server in Portland and the latency around it seems really bad. Nothing on the BSD side, but the route in which the packets have to go. ---------------------------------------------------------------------- [deleted] · 2021-09-10 23:30 Are you using wifi by chance? ---------------------------------------------------------------------- Oxidopamine · 2021-09-10 23:47 > fell for the bsd meme lmao ---------------------------------------------------------------------- Lammy · 2021-09-11 00:13 I'm not familiar with NetBSD's, but FreeBSD's default pkg server automatically assigns you to a mirror based on your geographic location by way of a GeoIP database. You can see which mirror you're getting by browsing to the same URL in your desktop browser: http://pkg.freebsd.org/ The default package server is configured in `/etc/pkg/FreeBSD.conf`, but if you want to try a different mirror you should create an override configuration instead of altering that file so future OS updates can happen automatically with no need to re-merge your changes. It would be something like: mkdir -p /usr/local/etc/pkg/repos echo "FreeBSD: { url: \"pkg+http://.FreeBSD.org/${ABI}/quarterly\" }" > /usr/local/etc/pkg/repos/FreeBSD.conf pkg update I'm not in front of a live system so apologies for any errors there. I recommend reading `man 5 pkg.conf` for more info on the structure and use of the repo configuration files: https://www.freebsd.org/cgi/man.cgi?pkg.conf(5) ---------------------------------------------------------------------- lebean · 2021-09-11 02:11 Do you have IPv6 connectivity, and is pkg downloading via v6? I used to be driven nuts by FreeBSD mirror slowness, then found that its was only slow over v6 and adding "-4" to my pkg command gets blazing fast downloads. All the rest of my v6 connectivity works perfectly, other os updates, browsing, everything, so I'm definitely not a "disable v6" advocate, but it was an instant, repeatable fix. ---------------------------------------------------------------------- crocflamingo · 2021-09-11 03:00 yeah the BSD package manager is slow ---------------------------------------------------------------------- jaypatelani · 2021-09-11 04:14 Hi I think you need to force pkg manager to use ipv4 then speed will be normal ---------------------------------------------------------------------- FUZxxl · 2021-09-11 09:17 Where are you located? ---------------------------------------------------------------------- [deleted] · 2021-09-11 22:12 Are you on a wireless connection? I know FreeBSD doesn't support 802.11ac yet, so your speeds will be significantly slower than on Linux. I don't think NetBSD supports 802.11ac either but don't quote me on that. ---------------------------------------------------------------------- metadududu · 2021-09-12 16:38 That may be the reason actually. ---------------------------------------------------------------------- metadududu · 2021-09-12 16:38 Mexico :) ---------------------------------------------------------------------- metadududu · 2021-09-12 16:39 No, my computer doesn't have Wi-Fi :( and I don't like it that much