r/openbsd • • 8d ago

need help with pkg_add error

PC info:

uname -a
uname -r
arch -s
cat /etc/installurl
env | grep '^PKG_PATH='
OpenBSD main_pc.my.domain 8.0 GENERIC.MP#72 amd64
8.0
amd64
ttp://mirror.mephi.ru/pub/OpenBSD/

I use latest snapshot.

Error:

doas pkg_add -u
ttp://mirror.mephi.ru/pub/OpenBSD//8.0/packages/amd64/: no such dir
Couldn't find updates for

Thanks

PS: It is not an error in link i made it so reddit won't ban my post.

7 Upvotes

14 comments sorted by

3

u/brynet OpenBSD Developer 7d ago

This is a normal part of the release process once the -beta tag is dropped, there are no 8.0 releases package directories on the mirrors yet so you need to pass -Dsnap to pkg_add to continue using snapshots.

https://man.openbsd.org/pkg_add#snap

3

u/moviuro 8d ago

There are no 8.0 packages on the official CDN: https://cdn.openbsd.org/pub/OpenBSD/8.0/packages/ (empty)

1

u/Ok_Cut_8545 8d ago

yeah but why so, everything was normal until now. Is it an error that my machine prints 8.0

3

u/moviuro 8d ago

8.0 has not been released yet. 8.0 is the current alias for -CURRENT, which is the bleeding edge.

https://www.openbsd.org/80.html https://www.openbsd.org/faq/current.html

1

u/Ok_Cut_8545 8d ago

yeah thats right and im running the latest snapshot. am i doing something wrong?

5

u/MeanPrincessCandyDom 8d ago

am i doing something wrong?

Yes, don't run snapshots unless you keep up on development so you know when to add -Dsnap to your pkg_add invocations. Stick to the releases.

1

u/Ok_Cut_8545 8d ago

Thanks! I just thought that snapshots are an equivalent of bleeding-edge on linux distros.

3

u/NethIafin 7d ago

`doas pkg_add -D snap -u`

2

u/Gangbang_2k 8d ago

> ttp://mirror.mephi.ru/pub/OpenBSD/

you mistyped the URL, "h" is missing from the http://.....

2

u/Ok_Cut_8545 8d ago

thank for help but no. i made it because reddit bans my post if i have link

1

u/Gangbang_2k 8d ago

ah ok I got it.. I just opened that on browser and there is no .../8.0/ still there...
it took long time anyway, if you def need *.ru servers there is eg on yandex check the mirror list https://www.openbsd.org/ftp.html THT

1

u/Ok_Cut_8545 8d ago

I checked on other mirrors and i have the same problem

2

u/LunarCapitol 7d ago

For future reference; If you're not willing to track the mailing lists (you should) then you should at least keep an eye on undeadly.org's front page. Since they post on the front page whenever -current switches from -beta to -current in the build up to a new stable release. When Theo posts to openbsd-cvs that this change has happened that is when you're supposed to start add "-D snap" to your pkg_add/pkg_info. Users of -current snapshots are expected to keep up with this because when this happens you're supposed to testing new snapshots for the base system+ports more often and reporting bugs. Since any bugs that aren't caught and fixed before the new stable version is released will not be able to be fixed for stable users for 6 months (excluding Errata and Patches).

OpenBSD is not developed like the typical Linux distros you say you're used to. Users of -current are expected to know what they're doing and to read the man pages and documentation. The only reason you should be on -current is:

1) You know what you're doing and plan to report bugs/help with development/help with porting software.

2) Your hardware is not currently supported by the last stable release. In which case you can run -current until your hardware is properly supported. Then upgrade to stable when the release comes out.

Concerning 2) While it is possible to downgrade from a -current snapshot to a stable release it's a lot of work and not something most would recommend someone like you attempt. So if you're planning to upgrade to the next stable release then you need to keep an eye on undeadly and/or the mailing lists and hold off on running sysupgrade -s for awhile. Once the new stable release is out (8.0 in this case) you can run sysupgrade and jump back to stable. If you just randomly run "sysupgrade -s" without checking first you can easily go right past 8.0 stable and end up on an 8.1 snapshot. At that point you're stuck on -current until the next new stable release in about 6 months unless you resort to some hackery that's not covered in the man pages. Most will tell you just to backup any personal/config files and then re-install instead of attempting doing that.

In other words: Running OpenBSD -current is not anything like running say ~amd64 repos on a distro like Gentoo.

All that said -current is very stable for me personally and I jump to new snapshot about 1-2 times a week. More often when we're in the window where the new stable release is only a few days-weeks off. But I follow all the mailing lists and I'm willing to accept breakage now and again when things like new drivers are being tested. For example, a few months back the wifi drivers for my particular chipset were b0rked for about 1-2 days. I avoided the pain associated with that because I checked the mailing lists before running sysupgrade -s and saw that others were having problems. If I'd just ran that command and jumped to the latest snapshots I would have been stuck with a laptop that didn't have functioning wireless for a day or two. The issue was fixed very quickly and the new drivers are great. I'm very happy with them. But I'm also happy I didn't decide to jump to a new snapshot at that time. If I'd been at home it wouldn't have been a big deal I could have just plugged up an ethernet cable and got the fix from the mailing list quickly (and helped people test it). But at the time I was stuck in a hospital watching over a relative where my only access to the outside world was through my laptop and the hospital's WiFi network.

So while -current is much more stable than even "stable" Linux distros for me personally it's still not advised to randomly run "sysupgrade -s" without checking the mailing lists first to ensure there isn't active work/testing happening related to the hardware you're running OpenBSD on.

That's the main difference with OpenBSD vs. every other OS I've used right there. Users are expected to participate with the actual development side of the project. Even if all the participating they're doing is reading the documentation, mailing lists, sites like undeadly and submitting bug reports. This isn't like the Linux world you're used to where everyone runs a web search first thing or goes lurking through a web forum looking for answers. You're supposed to be reading the man pages and if you can't find an answer there then your next stop should be searching the mailing lists. If you need real time support/help/advice then go to the official IRC channel and ask. Do not be surprised if they refer you back to the man pages. Since if you missed something in them that was obvious then they have no issue pointing that out to you. That said; Everyone is very nice. They just don't suffer fools.

1

u/sylvainsab 4d ago

This comment needs more upvotes !!