pkgin not working

475 views
Skip to first unread message

James T. Sprinkle

unread,
Nov 8, 2014, 9:51:29 PM11/8/14
to min...@googlegroups.com
I did a clean install of Minix 3.3.0 this evening on real hardware and when I try to run pkgin update it comes back immediately with:

reading local summary...
processing local summary...
updating database: 100%
database for http://www.minix3.org/pkgsrc/packages/3.3.0/i386/All is up-to-date

Every pkgin command I try gives me the same output after it states that the database needs to be updated.

I looked in the sql.log file in /usr/pkg/var/db/pkgin and it contains the following:

SQL error: callback requested query abort
SQL query: SELECT PKGDB_MTIME FROM PKGDB;
SQL error: callback requested query abort
SQL query: SELECT FULLPKGNAME,PKGNAME,PKGPATH FROM LOCAL_PKG WHERE PKG_KEEP IS NOT NULL;
SQL error: callback requested query abort
SQL query: SELECT FULLPKGNAME,PKGNAME,PKGVERS,COMMENT,FILE_SIZE,SIZE_PKG,CATEGORIES,PKGPATH FROM REMOTE_PKG ORDER BY FULLPKGNAME ASC;

This usually works no problem.  Any ideas?

Jim

James T. Sprinkle

unread,
Nov 8, 2014, 10:17:28 PM11/8/14
to min...@googlegroups.com
I was able to use the cd version of pkgin to install git and some other stuff and I am able to do a clone from the git repository.  Is there something wrong with the online pkg repository?

Antoine Leca

unread,
Nov 9, 2014, 5:36:41 AM11/9/14
to min...@googlegroups.com
On 2014-11-09 02:51Z, James T. Sprinkle wrote:
> I did a clean install of Minix 3.3.0 this evening on real hardware and
> when I try to run pkgin update it comes back immediately with:
>
> reading local summary...
> processing local summary...
> updating database: 100%
> database for http://www.minix3.org/pkgsrc/packages/3.3.0/i386/All is
> up-to-date

Same here; and I failed to locate any debugging features for pkgin :-(
pkgin is assuming a perfect network infrastructure...

Looks like the HTTP service for pkgin has problem: there is no echo of
http://www.minix3.org/pkgsrc/packages/3.3.0/i386/All/pkg_summary.bz2
being downloaded.

Editing in the configuration file /usr/pkg/etc/pkgin/repositories.conf
to use the FTP service did the trick for me
ftp://ftp.minix3.org/pub/minix/packages/$osrelease/$arch/All

PKG_REPOS=ftp://ftp.minix3.org/pub/minix/packages/3.3.0/i386/All pkgin
might do the same without any editing, if the problem is limited to the
VU HTTP server


Antoine

Lionel Sambuc

unread,
Nov 9, 2014, 5:51:05 AM11/9/14
to min...@googlegroups.com
Hi all,


I have been trying to figure this one out. We moved the www server out of the VU,
to our external server.

The website is up, the packages are there, everything seemed fine, so we were happy.

Here what I know:
- Old setup: Apache as a web server (works)
- "New" setup: lighttpd as a web server.
* for every hits on pkg_summary.bz2 I see a report in access.log
* somehow, using fetch / ftp / curl, I retrieve the whole file
* pkgin downloads only a small part of it, and then says up-to-date / nothing
available.
* the sha1 of the pkg_summary.bz2 are the same, as well as the access rights.

Given the above, I think this is a pkgin-specific problem, but I have no idea of
what is going on wrong.


Regards,

Lionel
> --
> You received this message because you are subscribed to the Google Groups "minix3" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to minix3+un...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Lionel Sambuc

unread,
Nov 9, 2014, 7:29:43 AM11/9/14
to min...@googlegroups.com
It should be fixed now.

The problem was that .bz2 files did not have a MIME type, which prevents lighttpd from sending a few HTTP headers (namely Last-Modified), which in turns makes pkgin to fails miserably.

The fix was to add in /etc/mime.types an entry for bz2 archives...

Can someone confirm it works now?


Regards,

Lionel
Reply all
Reply to author
Forward
0 new messages