DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 13th April 2023
bsd-keith bsd-keith is offline
Real Name: Keith
Open Source Software user
 
Join Date: Jun 2014
Location: Surrey/Hants Border, England
Posts: 345
Default 7.3 repository problems..

I installed 7.3 yesterday, ( installed OK), but couldn't install extra software, so I waited until today to see if it was just offline for updating, but, tried again just now, & still lots of necessary program packages missing - any one else having problems?

Programs I was trying to add - firefox(-esr) - mpv - mc - pysolfc - I did manage to install mpg123 yesterday, but that was all.
__________________
Linux since 1999, & also a BSD user.
Reply With Quote
  #2   (View Single Post)  
Old 13th April 2023
Head_on_a_Stick's Avatar
Head_on_a_Stick Head_on_a_Stick is offline
Real Name: Matthew
Bitchy Nerd Elitist
 
Join Date: Dec 2015
Location: London
Posts: 467
Default

What is the content of /etc/installurl? Can you ping that site?

A fresh 7.3 system using https://cdn.openbsd.org/pub/OpenBSD can pull in all the named applications for me.
Reply With Quote
  #3   (View Single Post)  
Old 13th April 2023
bsd-keith bsd-keith is offline
Real Name: Keith
Open Source Software user
 
Join Date: Jun 2014
Location: Surrey/Hants Border, England
Posts: 345
Default

I have the exact same in my /etc/installurl, & yet still can't install them - lots of 'can't resolve' lines!

I've never had so many as this before, only ever an occasional, which was resolved after a few hours of waiting; this is now 2 days!

(ping: non-recoverable failure in name resolution)

I've even just tried
Code:
export PKG_PATH=http://ftp.openbsd.org/pub/OpenBSD/7.3/packages/amd64/
which I used to use before, but still get all the 'can't resolve' lines.
__________________
Linux since 1999, & also a BSD user.

Last edited by bsd-keith; 13th April 2023 at 05:26 PM.
Reply With Quote
  #4   (View Single Post)  
Old 13th April 2023
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,984
Default

Quote:
Originally Posted by bsd-keith View Post
(ping: non-recoverable failure in name resolution)
This is not a package repository issue. This is a network issue. Your DNS configuration is not working properly.

Initial diagnostics:
  • Start with the contents of /etc/resolv.conf. It should list the IP addresses of one or more name servers. If any are present, can they be pinged? If they're not present, none are currently provisioned.
  • Do you use autoconfiguration? It is often used to set IP addresses, routing, and domain name servers. Issue $ ifconfig | grep AUTOCONF -- any output from this will show one or more autoconfigured NICs.
  • Is dhcpleased(8) running? For autoconfiguration to work properly, it must be. Issue $ rcctl check dhcpleased to see if it's running or not.
These steps should get you started on finding out why DNS isn't working.
Reply With Quote
  #5   (View Single Post)  
Old 13th April 2023
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,984
Default

I neglected to mention a second daemon - resolvd(8). Check to see if it's running, the same way as dhcpleased(8).
Reply With Quote
  #6   (View Single Post)  
Old 14th April 2023
bsd-keith bsd-keith is offline
Real Name: Keith
Open Source Software user
 
Join Date: Jun 2014
Location: Surrey/Hants Border, England
Posts: 345
Default

The weird thing is that it can install mpg123, but is having these other 'can't resolve' problems....

I'll give your suggestions a try.....
__________________
Linux since 1999, & also a BSD user.
Reply With Quote
  #7   (View Single Post)  
Old 14th April 2023
bsd-keith bsd-keith is offline
Real Name: Keith
Open Source Software user
 
Join Date: Jun 2014
Location: Surrey/Hants Border, England
Posts: 345
Default

/etc/resolv.conf = nameserver 192.168.0.1 # urtwn0
ifconfig | grep AUTOCONF = urtwn0
rcctl check dhcpleased = ok
rcctl check resolvd = ok

Plus > ping 8.8.8.8 is working OK

Also tried (suggested from LQ)
pkg_add -u = ok
pkg_add check = ok

EDIT: So it looks like I need another (external) nameserver in resolv.conf - will add, & try again...
__________________
Linux since 1999, & also a BSD user.
Reply With Quote
  #8   (View Single Post)  
Old 14th April 2023
bsd-keith bsd-keith is offline
Real Name: Keith
Open Source Software user
 
Join Date: Jun 2014
Location: Surrey/Hants Border, England
Posts: 345
Default

Added https://cdn.openbsd.org/pub/OpenBSD as first nameserver in /etc/resolv.conf - but still no joy (even after reboot).

Added it to .profile, & we're getting somewhere (after a reboot), now running pkg_add -u

(libcrypto & libssl 'minor is too small')

BUT...still won't install mc or lynx - still 'can't resolve' problem persists!!!

ping openbsd.org - works
__________________
Linux since 1999, & also a BSD user.

Last edited by bsd-keith; 14th April 2023 at 09:49 AM.
Reply With Quote
  #9   (View Single Post)  
Old 14th April 2023
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,984
Default

Quote:
Originally Posted by bsd-keith View Post
Added https://cdn.openbsd.org/pub/OpenBSD as first nameserver in /etc/resolv.conf - but still no joy (even after reboot).
Name servers resolve names to IP addresses. Any "nameserver" provisioned in /etc/resolv.conf must be provisioned as an IP address. See the resolv.conf(5) man page regarding how to provision these, how many can be provisioned, and how it attempts to use them when more than one is listed.
Quote:
(libcrypto & libssl 'minor is too small')
This message would most likely appear if you are pointed to a -current snapshot repository rather than a release repository.

Is the domain name server at 192.168.0.1 under your control, or is that a server managed by your ISP?
Reply With Quote
Old 14th April 2023
bsd-keith bsd-keith is offline
Real Name: Keith
Open Source Software user
 
Join Date: Jun 2014
Location: Surrey/Hants Border, England
Posts: 345
Default

I'm guessing 192.168.0.1 is via my ISP router - I'll try adding 199.185.178.80 to resolve.conf

Thanks for your time...

Edit: Still no-go even after a reboot...

pkg_add mc
Can't install python-3.10.10p0 because of libraries
library crypto.50.2 not found
(etc.)


PKG_PATH=http://ftp.openbsd.org/pub/OpenBSD/7.3/packages/amd64/
__________________
Linux since 1999, & also a BSD user.

Last edited by bsd-keith; 14th April 2023 at 12:01 PM.
Reply With Quote
Old 14th April 2023
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,984
Default

Quote:
Originally Posted by bsd-keith View Post
I'll try adding 199.185.178.80 to resolve.conf
I think you may be confused, because that doesn't make any sense to me.

Think of a domain name server as an address book. Name servers receive domain name queries we give them -- such as daemonforums.org -- and reply with the domain name's IP address -- such as 65.109.3.37 -- so our computers can send packets to the address.

There are free and public domain name servers such as Google's 8.8.8.8 or Quad9's 9.9.9.9.

Your ISP may manage the domain name server at 192.168.0.1, if that private address is not under your own control.
Reply With Quote
Old 14th April 2023
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,984
Default

Quote:
pkg_add mc
Can't install python-3.10.10p0 because of libraries
library crypto.50.2 not found
(etc.)
This is a repository mismatch.
Reply With Quote
Old 14th April 2023
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,984
Default

When I say mismatch, I mean that you are using the wrong package repository. My guess is you have an incorrect PKG_PATH environment variable defined. If you have a PKG_PATH it overrides anything in /etc/installurl.

/etc/installurl will automatically use the correct repository (or repositories) for the release and flavor of the installed OS. PKG_PATH gives the admin the ability to provision all of that manually. Or, as I believe may have happened here, mis-configure it.
Reply With Quote
Old 14th April 2023
bsd-keith bsd-keith is offline
Real Name: Keith
Open Source Software user
 
Join Date: Jun 2014
Location: Surrey/Hants Border, England
Posts: 345
Default

Well, I'll take your word for it..... though how it has come about, I haven't got a clue!

I'll go & download another .img file, & re install; hopefully that will cure everything....

Thanks again for your help.
__________________
Linux since 1999, & also a BSD user.
Reply With Quote
Old 14th April 2023
bsd-keith bsd-keith is offline
Real Name: Keith
Open Source Software user
 
Join Date: Jun 2014
Location: Surrey/Hants Border, England
Posts: 345
Default

I think I now know what was wrong, & it was my fault all along, I had installed 7.3-BETA.....

So, I'm guessing that was the reason for the mis matched repositories.

My apologies, & many thanks for trying to help me with this...
__________________
Linux since 1999, & also a BSD user.
Reply With Quote
Old 14th April 2023
Head_on_a_Stick's Avatar
Head_on_a_Stick Head_on_a_Stick is offline
Real Name: Matthew
Bitchy Nerd Elitist
 
Join Date: Dec 2015
Location: London
Posts: 467
Default

For future reference:
Quote:
Originally Posted by bsd-keith View Post
PKG_PATH=http://ftp.openbsd.org/pub/OpenBSD/7.3/packages/amd64/
^ This is wrong. See installurl(5) for the correct format.
Reply With Quote
Old 14th April 2023
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,984
Default

The PKG_PATH environment variable and its syntax requirements are defined in the pkg_add(1) man page.

When an admin defines PKG_PATH, it overrides any provisioning of installurl(5).
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Security 10 malicious Python packages exposed in latest repository attack J65nko News 0 9th August 2022 09:45 PM
Vi/Vim problems sorkom OpenBSD Packages and Ports 7 8th February 2016 01:51 PM
mplayer & mplayer-share-1.1.1 not available on the repository Martillo NetBSD Package System (pkgsrc) 5 5th November 2013 11:37 AM
PC-BSD Announces Package Repository for PC-BSD and FreeBSD 9.1 shep News 2 7th April 2013 02:02 PM
Own repository for Debian/Ubuntu on FreeBSD server Lexus45 FreeBSD General 2 26th January 2012 05:09 AM


All times are GMT. The time now is 05:56 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick