pkg_add fatal error

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

pkg_add fatal error

Martin Pieuchot
I'm always getting errors, I don't know how to help.  I'm just a stupid
user of 'pkg_add -u' on a current machine.

OpenBSD 6.1-current (GENERIC.MP) #52: Sun May  7 14:56:02 MDT 2017
    [hidden email]:/usr/src/sys/arch/amd64/compile/GENERIC.MP

cat /etc/installurl                                                
https://ftp.fr.openbsd.org/pub/OpenBSD

Fatal error: can't parse OpenBSD::RequiredBy: writing /var/db/pkg/gnome-desktop-3.24.1/+REQUIRED_BY: No such file or directory at /usr/libdata/perl5/OpenBSD/RequiredBy.pm line 30.                                                            
        OpenBSD::RequirementList::fatal_error(OpenBSD::RequiredBy=HASH(0x101b8953da78), "writing") called at /usr/libdata/perl5/OpenBSD/RequiredBy.pm line 67
        OpenBSD::RequirementList::synch(OpenBSD::RequiredBy=HASH(0x101b8953da78)) called at /usr/libdata/perl5/OpenBSD/RequiredBy.pm line 122
        OpenBSD::RequirementList::add(OpenBSD::RequiredBy=HASH(0x101b8953da78), "gnome-control-center-3.24.2") called at /usr/libdata/perl5/OpenBSD/Dependencies.pm line 713                                                                  
        OpenBSD::Dependencies::Solver::register_dependencies(OpenBSD::Dependencies::Solver=HASH(0x101bb0881d60), OpenBSD::PkgAdd::State=HASH(0x101c36b80340)) called at /usr/libdata/perl5/OpenBSD/PkgAdd.pm line 839                          
        OpenBSD::PkgAdd::really_add(OpenBSD::UpdateSet=HASH(0x101bc645fc88), OpenBSD::PkgAdd::State=HASH(0x101c36b80340)) called at /usr/libdata/perl5/OpenBSD/PkgAdd.pm line 1033                                                            
        OpenBSD::PkgAdd::process_set("OpenBSD::PkgAdd", OpenBSD::UpdateSet=HASH(0x101bc645fc88), OpenBSD::PkgAdd::State=HASH(0x101c36b80340)) called at /usr/libdata/perl5/OpenBSD/AddDelete.pm line 127                                      
        OpenBSD::AddDelete::process_setlist("OpenBSD::PkgAdd", OpenBSD::PkgAdd::State=HASH(0x101c36b80340)) called at /usr/libdata/perl5/OpenBSD/PkgAdd.pm line 1170                                                                          
        OpenBSD::PkgAdd::main("OpenBSD::PkgAdd", OpenBSD::PkgAdd::State=HASH(0x101c36b80340)) called at /usr/libdata/perl5/OpenBSD/AddDelete.pm line 50
        eval {...} called at /usr/libdata/perl5/OpenBSD/AddDelete.pm line 50    
        OpenBSD::AddDelete::do_the_main_work("OpenBSD::PkgAdd", OpenBSD::PkgAdd::State=HASH(0x101c36b80340)) called at /usr/libdata/perl5/OpenBSD/AddDelete.pm line 64                                                                        
        OpenBSD::AddDelete::__ANON__ called at /usr/libdata/perl5/OpenBSD/AddDelete.pm line 87
        OpenBSD::AddDelete::__ANON__ called at /usr/libdata/perl5/OpenBSD/Error.pm line 175
        eval {...} called at /usr/libdata/perl5/OpenBSD/Error.pm line 175      
        OpenBSD::Error::try(CODE(0x101c5b1cdfd0), OpenBSD::Error::catch=CODE(0x101bc0455040)) called at /usr/libdata/perl5/OpenBSD/AddDelete.pm line 95
        OpenBSD::AddDelete::framework("OpenBSD::PkgAdd", OpenBSD::PkgAdd::State=HASH(0x101c36b80340)) called at /usr/libdata/perl5/OpenBSD/AddDelete.pm line 108
        OpenBSD::AddDelete::parse_and_run("OpenBSD::PkgAdd", "pkg_add") called at /usr/sbin/pkg_add line 30
        main::run("pkg_add", "PkgAdd") called at /usr/sbin/pkg_add line 46

Reply | Threaded
Open this post in threaded view
|

Re: pkg_add fatal error

Marc Espie-2
On Sat, May 13, 2017 at 02:44:05PM +0200, Martin Pieuchot wrote:

> I'm always getting errors, I don't know how to help.  I'm just a stupid
> user of 'pkg_add -u' on a current machine.
>
> OpenBSD 6.1-current (GENERIC.MP) #52: Sun May  7 14:56:02 MDT 2017
>     [hidden email]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
>
> cat /etc/installurl                                                
> https://ftp.fr.openbsd.org/pub/OpenBSD
>
> Fatal error: can't parse OpenBSD::RequiredBy: writing /var/db/pkg/gnome-desktop-3.24.1/+REQUIRED_BY: No such file or directory at /usr/libdata/perl5/OpenBSD/RequiredBy.pm line 30.                                                            
It's just the most evasive bug... the most frustrating part about it is
that it's not even easily reproduceable.

I haven't been able to figure out where it happens, it's definitely
something in the dependency caching or the tracker module, but so far
I don't know where (and believe me, I've looked!)

Work-around is to run pkg_check right after and rerun pkg_add.