List Info

Thread: pkg_add goofiness in 7.0




pkg_add goofiness in 7.0
user name
2008-03-30 02:42:28
The first time I tried to add linuxdoc-1.1_1.tbz to a
new-from-CD
7.0 installation, it complained about a missing dependency
that
was on the other CD.  OK, I switched CDs and installed that,
then
switched back and retried linuxdoc-1.1_1.tbz, and it gave me
some
sort of error about an unbalanced add operation.  (I didn't
try
to copy down all the details, figuring instead to retry with
a
script(1) active so as to capture them.)  Upon that retry,
it now
tells me that the package is already installed, even though
the
prior attempt failed.

What is going on?

# uname -a
FreeBSD fbsd70.uucp 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun
Feb 24 19:59:52 UTC 2008     rootlogan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC 
i386
# ls -l linuxdoc*
-r--r--r--  1 root  wheel  9156 Feb 24 08:18
linuxdoc-1.1_1.tbz
# pkg_add -Kv linuxdoc*
Requested space: 36624 bytes, free space: 774981632 bytes in
/var/tmp/instmp.3DBbHN
pkg_add: package 'linuxdoc-1.1_1' or its older version
already installed
pkg_add: 1 package addition(s) failed
_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"

Re: pkg_add goofiness in 7.0
country flaguser name
United States
2008-03-30 07:13:22
perryhpluto.rain.com wrote:
> The first time I tried to add linuxdoc-1.1_1.tbz to a
new-from-CD
> 7.0 installation, it complained about a missing
dependency that
> was on the other CD.  OK, I switched CDs and installed
that, then
> switched back and retried linuxdoc-1.1_1.tbz, and it
gave me some
> sort of error about an unbalanced add operation.  (I
didn't try
> to copy down all the details, figuring instead to retry
with a
> script(1) active so as to capture them.)  Upon that
retry, it now
> tells me that the package is already installed, even
though the
> prior attempt failed.
> 
> What is going on?
> 
> # uname -a
> FreeBSD fbsd70.uucp 7.0-RELEASE FreeBSD 7.0-RELEASE #0:
Sun Feb 24 19:59:52 UTC 2008     rootlogan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC 
i386
> # ls -l linuxdoc*
> -r--r--r--  1 root  wheel  9156 Feb 24 08:18
linuxdoc-1.1_1.tbz
> # pkg_add -Kv linuxdoc*
> Requested space: 36624 bytes, free space: 774981632
bytes in /var/tmp/instmp.3DBbHN
> pkg_add: package 'linuxdoc-1.1_1' or its older version
already installed
> pkg_add: 1 package addition(s) failed

No idea, you'll have to recreate the failure and show us.

Kris
_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"

Re: pkg_add goofiness in 7.0
user name
2008-03-30 17:22:56
> > [trying to install linuxdoc-1.1_1.tbz] it gave me
some
> > sort of error about an unbalanced add operation. 
(I didn't try
> > to copy down all the details, figuring instead to
retry with a
> > script(1) active so as to capture them.)  Upon
that retry, it now
> > tells me that the package is already installed,
even though the
> > prior attempt failed.
> > ...
> > # ls -l linuxdoc*
> > -r--r--r--  1 root  wheel  9156 Feb 24 08:18
linuxdoc-1.1_1.tbz
> > # pkg_add -Kv linuxdoc*
> > Requested space: 36624 bytes, free space:
774981632 bytes in /var/tmp/instmp.3DBbHN
> > pkg_add: package 'linuxdoc-1.1_1' or its older
version already installed
> > pkg_add: 1 package addition(s) failed
>
> No idea, you'll have to recreate the failure and show
us.

Which failure are you referring to?  The original one with
the
unbalanced add message, or the new one where it claims the
package is
already installed even though the previous installation
reportedly
failed?

I can recreate the second one any number of times, but
absent some
specific suggestion it's not going to produce any more
output than
shown above.  (I'm already specifying -v.)  Short of wiping
the
drive and starting completely over, I have no idea how to go
about
reproducing the original failure without first fixing the
newer one.
_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"

Re: pkg_add goofiness in 7.0
user name
2008-03-30 19:17:18
> What you showed does not indicate a failure.  If you
are saying
> that the package wasn't actually installed completely,
then
> pkg_delete it and retry.

I am not saying that the package was installed
incompletely,
incorrectly, or something else because I don't know which of
those
applies.  *The package installation itself* threw an error
message,
with no instructions for recovery, and left the package
database
corrupted (incorrectly showing the package as installed).

pkg_delete was only partially successful, perhaps because it
was
unable to completely clean up the corruption.  Now what?

# pkg_delete -v linuxdoc-1.1_1
Trying to remove dependency on package 'xmlcatmgr-2.2' with
'textproc/xmlcatmgr' origin.
Trying to remove dependency on package 'iso8879-1986_2' with
'textproc/iso8879' origin.
Change working directory to /usr/local
Delete file /usr/local/share/sgml/linuxdoc/README
Execute '/usr/local/bin/xmlcatmgr -sc
/usr/local/share/sgml/catalog.ports remove
linuxdoc/catalog'
xmlcatmgr: enabling compatibility mode; removing ALL
matching entries
xmlcatmgr: no matching entry for `linuxdoc/catalog' of any
type
pkg_delete: unexec command for '/usr/local/bin/xmlcatmgr -sc
/usr/local/share/sgml/catalog.ports remove linuxdoc/catalog'
failed
Delete file /usr/local/share/sgml/linuxdoc/catalog
Delete file /usr/local/share/sgml/linuxdoc/freebsd-1.0.dtd
Delete file /usr/local/share/sgml/linuxdoc/freebsd-1.1.dtd
Delete file /usr/local/share/sgml/linuxdoc/linuxdoc.dec
Delete file /usr/local/share/sgml/linuxdoc/original.dtd
Delete directory /usr/local/share/sgml/linuxdoc
Change working directory to .
pkg_delete: couldn't entirely delete package (perhaps the
packing list is
incorrectly specified?)
_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"

Re: pkg_add goofiness in 7.0
country flaguser name
United States
2008-03-30 19:44:27
perryhpluto.rain.com wrote:
>> What you showed does not indicate a failure.  If
you are saying
>> that the package wasn't actually installed
completely, then
>> pkg_delete it and retry.
> 
> I am not saying that the package was installed
incompletely,
> incorrectly, or something else because I don't know
which of those
> applies.  *The package installation itself* threw an
error message,
> with no instructions for recovery, and left the package
database
> corrupted (incorrectly showing the package as
installed).

Fine, but there is nothing I can do to help you without
knowing what the 
error was.

> pkg_delete was only partially successful, perhaps
because it was
> unable to completely clean up the corruption.  Now
what?
> 
> # pkg_delete -v linuxdoc-1.1_1
> Trying to remove dependency on package 'xmlcatmgr-2.2'
with 'textproc/xmlcatmgr' origin.
> Trying to remove dependency on package 'iso8879-1986_2'
with 'textproc/iso8879' origin.
> Change working directory to /usr/local
> Delete file /usr/local/share/sgml/linuxdoc/README
> Execute '/usr/local/bin/xmlcatmgr -sc
/usr/local/share/sgml/catalog.ports remove
linuxdoc/catalog'
> xmlcatmgr: enabling compatibility mode; removing ALL
matching entries
> xmlcatmgr: no matching entry for `linuxdoc/catalog' of
any type
> pkg_delete: unexec command for
'/usr/local/bin/xmlcatmgr -sc
/usr/local/share/sgml/catalog.ports remove linuxdoc/catalog'
failed
> Delete file /usr/local/share/sgml/linuxdoc/catalog
> Delete file
/usr/local/share/sgml/linuxdoc/freebsd-1.0.dtd
> Delete file
/usr/local/share/sgml/linuxdoc/freebsd-1.1.dtd
> Delete file
/usr/local/share/sgml/linuxdoc/linuxdoc.dec
> Delete file
/usr/local/share/sgml/linuxdoc/original.dtd
> Delete directory /usr/local/share/sgml/linuxdoc
> Change working directory to .
> pkg_delete: couldn't entirely delete package (perhaps
the packing list is
> incorrectly specified?)
> 
> 

As I said, now try to repeat the original problem.

Kris
_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"

Re: pkg_add goofiness in 7.0
user name
2008-03-30 20:37:48
I believe this is the same as the error message I saw
originally
(when I had not specified -v, so it wasn't buried among a
pile of
other stuff):

xmlcatmgr: unbalanced arguments for `add' action

# pkg_add -Kv linuxdoc*
Requested space: 36624 bytes, free space: 774946816 bytes in
/var/tmp/instmp.CfA0bH
Package 'linuxdoc-1.1_1' depends on 'xmlcatmgr-2.2' with
'textproc/xmlcatmgr' origin.
 - already installed.
Package 'linuxdoc-1.1_1' depends on 'iso8879-1986_2' with
'textproc/iso8879' origin.
 - already installed.
extract: Package name is linuxdoc-1.1_1
extract: CWD to /usr/local
extract: /usr/local/share/sgml/linuxdoc/README
extract: /usr/local/share/sgml/linuxdoc/catalog
extract: execute '/usr/local/bin/xmlcatmgr -sc
/usr/local/share/sgml/catalog.ports add linuxdoc/catalog'
xmlcatmgr: unbalanced arguments for `add' action
pkg_add: command '/usr/local/bin/xmlcatmgr -sc
/usr/local/share/sgml/catalog.ports add linuxdoc/catalog'
failed
extract: /usr/local/share/sgml/linuxdoc/freebsd-1.0.dtd
extract: /usr/local/share/sgml/linuxdoc/freebsd-1.1.dtd
extract: /usr/local/share/sgml/linuxdoc/linuxdoc.dec
extract: /usr/local/share/sgml/linuxdoc/original.dtd
extract: CWD to .
Running mtree for linuxdoc-1.1_1..
mtree -U -f +MTREE_DIRS -d -e -p /usr/local >/dev/null
Attempting to record package into
/var/db/pkg/linuxdoc-1.1_1..
Trying to record dependency on package 'xmlcatmgr-2.2' with
'textproc/xmlcatmgr' origin.
Trying to record dependency on package 'iso8879-1986_2' with
'textproc/iso8879' origin.
Package linuxdoc-1.1_1 registered in
/var/db/pkg/linuxdoc-1.1_1
_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"

[1-6]

about | contact  Other archives ( Real Estate discussion Medical topics )