Re: apt-get dist-upgrade bails

2003-03-28 Thread Paul Johnson
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Thu, Mar 27, 2003 at 10:10:17PM +, Jonathan Matthews wrote:

 apt-get install apt dpkg tar ( ... any others anyone?)
 apt-get dist-upgrade


This is redundant.  Things apt depends on always get resolved and
installed first as far as I can tell.

Another dist-upgrade should not hurt anything...gdk is gnome
development goodies, IIRC.

- -- 
 .''`. Baloo Ursidae [EMAIL PROTECTED]
: :'  :proud Debian admin and user
`. `'`
  `-  Debian - when you have better things to do than fix a system
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+hAbbJ5vLSqVpK2kRAmfQAKDLoumxwJOFVP6FpBNvLmo/1bLnUwCfcEUL
HK7fk8ZHtRUN0r4QLsvdjnY=
=9qa4
-END PGP SIGNATURE-


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: apt-get dist-upgrade bails

2003-03-28 Thread Paul Johnson
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Thu, Mar 27, 2003 at 06:03:42PM -0500, Patrick Wiseman wrote:
 /var/cache/apt/archives/gdk-imlib-dev_1.9.14-6_i386.deb (--unpack):
  trying to overwrite `/usr/bin/imlib-config', which is also in package
 imlib-base

OK, you might have to solve this one by hand.  Try this...

dpkg -i --force-overwrite /var/cache/apt/archives/gdk-imlib-dev_1.9.14-6_i386.deb
apt-get dist-upgrade

bug gdk-imlib-dev (and explain that /usr/bin/imlib-config is also
supplied by imlib-base and should have a sane way of dealing with
this).

 Is something happening in the wrong order?  Thanks for the assistance, and
 the reassurance that my system's not too badly hosed!

Apparently not.  Looks like a DD is supplying the same file as another
package and apt isn't willing to stomp it on it's own.  One of those
two packages shouldn't have that file but it's not clear to me which
one and I don't forsee serious breakage from stomping over one version
by hand in this case.

- -- 
 .''`. Baloo Ursidae [EMAIL PROTECTED]
: :'  :proud Debian admin and user
`. `'`
  `-  Debian - when you have better things to do than fix a system
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+hAp3J5vLSqVpK2kRAvxeAJ43lsJG+prSLZuTBvVe520rijrgygCfURNc
ATriLqLsN79JP3rQoNI0bIo=
=QS2V
-END PGP SIGNATURE-


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: apt-get dist-upgrade bails

2003-03-28 Thread Nathan E Norman
On Fri, Mar 28, 2003 at 12:24:59AM -0800, Paul Johnson wrote:
 On Thu, Mar 27, 2003 at 10:10:17PM +, Jonathan Matthews wrote:
 
  apt-get install apt dpkg tar ( ... any others anyone?)

debconf

  apt-get dist-upgrade
 
 
 This is redundant.  Things apt depends on always get resolved and
 installed first as far as I can tell.

When apt can deduce this from the dependency information, you're
correct.  However, I personally have experienced situations where i
saved myself a lot of pain by installing some bit first (apt, dpkg,
debconf) rather than trying it all in one fell swoop.  Things weren't
irretrievably broken, but I did have to run apt-get dist-upgrade
several times consecutively to get things sorted out.  I found the
former method to be more efficent.

Remember, a dist-upgrade is not the same as an upgrade.

In any case, apt kicks ass.  A friend of mine was at a class recently
and several participants were bemoaning the difficulty of keeping a
redhat box secure, keeping up with patches, etc.  They freaked out
when he showed them apt.

-- 
Nathan Norman - Incanus Networking mailto:[EMAIL PROTECTED]
  Q:  What's the difference between a computer salesman and a used
  car salesman?
  A:  A used car salesman knows when he's lying.


pgp0.pgp
Description: PGP signature


apt-get dist-upgrade bails

2003-03-27 Thread Patrick Wiseman
I decided to go to 'testing', so edited my sources.list, did 'apt-get
update', 'apt-get dist-upgrade' which, after installing lots of packages,
bailed with the following error:

Errors were encountered while processing:
 /var/cache/apt/archives/gdk-imlib-dev_1.9.14-6_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

So, how badly hosed is my system, and what do I need to do to complete the
upgrade?

Patrick

-- 
Patrick Wiseman   [EMAIL PROTECTED]
Linux user #17943 *Google First, Ask Later*


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



apt-get dist-upgrade bails

2003-03-27 Thread Patrick Wiseman
I decided to go to 'testing', so edited my sources.list, did 'apt-get
update', 'apt-get dist-upgrade' which, after installing lots of packages,
bailed with the following error:

Errors were encountered while processing:
 /var/cache/apt/archives/gdk-imlib-dev_1.9.14-6_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

So, how badly hosed is my system, and what do I need to do to complete the
upgrade?

Patrick

-- 
Patrick Wiseman   [EMAIL PROTECTED]
Linux user #17943 *Google First, Ask Later*


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: apt-get dist-upgrade bails

2003-03-27 Thread Jonathan Matthews
On Thu, Mar 27, 2003 at 08:40:39AM -0500, Patrick Wiseman wrote:
 I decided to go to 'testing', so edited my sources.list, did 'apt-get
 update', 'apt-get dist-upgrade' which, after installing lots of packages,
 bailed with the following error:
 
 Errors were encountered while processing:
  /var/cache/apt/archives/gdk-imlib-dev_1.9.14-6_i386.deb
 E: Sub-process /usr/bin/dpkg returned an error code (1)
 
 So, how badly hosed is my system, and what do I need to do to complete the
 upgrade?

FWIW, it's advised to do

update sources.list to testing
apt-get update
apt-get install apt dpkg tar ( ... any others anyone?)
apt-get dist-upgrade

... rather than just a straight update; dist-upgrade.

In this case, what does /another/ apt-get dist-upgrade do?

  jc


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: apt-get dist-upgrade bails

2003-03-27 Thread Colin Watson
On Thu, Mar 27, 2003 at 08:40:39AM -0500, Patrick Wiseman wrote:
 I decided to go to 'testing', so edited my sources.list, did 'apt-get
 update', 'apt-get dist-upgrade' which, after installing lots of packages,
 bailed with the following error:
 
 Errors were encountered while processing:
  /var/cache/apt/archives/gdk-imlib-dev_1.9.14-6_i386.deb
 E: Sub-process /usr/bin/dpkg returned an error code (1)

There will (should) have been a more specific error before that. We need
to see it.

 So, how badly hosed is my system,

Not very.

 and what do I need to do to complete the upgrade?

Probably not much, but we can't tell yet. :)

-- 
Colin Watson  [EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: apt-get dist-upgrade bails

2003-03-27 Thread Patrick Wiseman
Apologies for the duplicate; the upgrade had turned off exim, apparently,
and I tried resending before realising that was the problem, so there were
two identical messages in the queue.

Patrick

-- 
Patrick Wiseman   [EMAIL PROTECTED]
Linux user #17943 *Google First, Ask Later*


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: apt-get dist-upgrade bails

2003-03-27 Thread Patrick Wiseman
On Thu, 27 Mar 2003 at 10:10pm, Jonathan Matthews wrote:

:On Thu, Mar 27, 2003 at 08:40:39AM -0500, Patrick Wiseman wrote:
: I decided to go to 'testing', so edited my sources.list, did 'apt-get
: update', 'apt-get dist-upgrade' which, after installing lots of packages,
: bailed with the following error:
: 
: Errors were encountered while processing:
:  /var/cache/apt/archives/gdk-imlib-dev_1.9.14-6_i386.deb
: E: Sub-process /usr/bin/dpkg returned an error code (1)
: 
: So, how badly hosed is my system, and what do I need to do to complete the
: upgrade?
:
:FWIW, it's advised to do
:
:update sources.list to testing
:apt-get update
:apt-get install apt dpkg tar ( ... any others anyone?)
:apt-get dist-upgrade
:
:... rather than just a straight update; dist-upgrade.

OK - that wasn't obvious from 'man apt-get'.

:In this case, what does /another/ apt-get dist-upgrade do?

I haven't tried that, but I guess it can't do any harm.

Patrick

-- 
Patrick Wiseman   [EMAIL PROTECTED]
Linux user #17943 *Google First, Ask Later*


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: apt-get dist-upgrade bails

2003-03-27 Thread ronin2
On Thu, 27 Mar 2003 08:40:39 -0500 (EST)
Patrick Wiseman [EMAIL PROTECTED] wrote:

 Errors were encountered while processing:
  /var/cache/apt/archives/gdk-imlib-dev_1.9.14-6_i386.deb
 E: Sub-process /usr/bin/dpkg returned an error code (1)
 
 So, how badly hosed is my system, and what do I need to do to complete
 the upgrade?

I sometimes get an error like this. Doing apt-get -f install usually
fixes whatever was wrong.

Kevin


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: apt-get dist-upgrade bails

2003-03-27 Thread Patrick Wiseman
On Thu, 27 Mar 2003 at 10:17pm, Colin Watson wrote:

:On Thu, Mar 27, 2003 at 08:40:39AM -0500, Patrick Wiseman wrote:
: I decided to go to 'testing', so edited my sources.list, did 'apt-get
: update', 'apt-get dist-upgrade' which, after installing lots of packages,
: bailed with the following error:
: 
: Errors were encountered while processing:
:  /var/cache/apt/archives/gdk-imlib-dev_1.9.14-6_i386.deb
: E: Sub-process /usr/bin/dpkg returned an error code (1)
:
:There will (should) have been a more specific error before that. We need
:to see it.

OK - when I re-run apt-get dist-upgrade, I get this:

Reading Package Lists... Done
Building Dependency Tree... Done
Calculating Upgrade... Done
The following NEW packages will be installed:
  libgsl0 libgtk-common libgtk2.0-0 libgtk2.0-common libmpich1.0
  libnet-smtp-server-perl libpango-common libpango1.0-0 libpango1.0-common
  mpich-common snd-gtk spamc tcl8.4-dev 
The following packages have been kept back
  fetchmail libgnome-dev 
129 packages upgraded, 13 newly installed, 0 to remove and 2  not
upgraded.
321 packages not fully installed or removed.
Need to get 68.0kB/65.5MB of archives. After unpacking 18.9MB will be
used.
Do you want to continue? [Y/n] 


Note all the packages not fully installed or removed; then, when I
proceed, here are messages referring to the package which seems to be
causing the problem:

Preconfiguring packages ...
(Reading database ... 89637 files and directories currently installed.)
Preparing to replace gdk-imlib-dev 1.9.14-2 (using
.../gdk-imlib-dev_1.9.14-6_i386.deb) ...
Unpacking replacement gdk-imlib-dev ...
dpkg: error processing
/var/cache/apt/archives/gdk-imlib-dev_1.9.14-6_i386.deb (--unpack):
 trying to overwrite `/usr/bin/imlib-config', which is also in package
imlib-base


Then a bunch of Unpacking and Selecting ... then 

Errors were encountered while processing:
 /var/cache/apt/archives/gdk-imlib-dev_1.9.14-6_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


Is something happening in the wrong order?  Thanks for the assistance, and
the reassurance that my system's not too badly hosed!

Patrick

-- 
Patrick Wiseman   [EMAIL PROTECTED]
Linux user #17943 *Google First, Ask Later*


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



[FIXED] Re: apt-get dist-upgrade bails

2003-03-27 Thread Patrick Wiseman
On Thu, 27 Mar 2003 at 4:46pm, I wrote:

:I decided to go to 'testing', so edited my sources.list, did 'apt-get
:update', 'apt-get dist-upgrade' which, after installing lots of packages,
:bailed with the following error:
:
:Errors were encountered while processing:
: /var/cache/apt/archives/gdk-imlib-dev_1.9.14-6_i386.deb
:E: Sub-process /usr/bin/dpkg returned an error code (1)

After Colin Watson told me to look for the actual error :) I used aptitude
(with which I'm most comfortable installing packages), purged the
offending package (and got no complaints about dependency problems), and
then allowed aptitude to go ahead and install all the pending packages,
which seems to be proceeding without a problem.  I'll do apt-get
dist-upgrade one more time, just to be sure I've not missed anything.

Thanks for your patience!

Patrick

-- 
Patrick Wiseman   [EMAIL PROTECTED]
Linux user #17943 *Google First, Ask Later*


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: apt-get dist-upgrade bails

2003-03-27 Thread ronin2
On Thu, 27 Mar 2003 18:03:42 -0500 (EST)
Patrick Wiseman [EMAIL PROTECTED] wrote:

 Note all the packages not fully installed or removed; then, when I
 proceed, here are messages referring to the package which seems to be
 causing the problem:
 
 Preconfiguring packages ...
 (Reading database ... 89637 files and directories currently
 installed.) Preparing to replace gdk-imlib-dev 1.9.14-2 (using
 .../gdk-imlib-dev_1.9.14-6_i386.deb) ...
 Unpacking replacement gdk-imlib-dev ...
 dpkg: error processing
 /var/cache/apt/archives/gdk-imlib-dev_1.9.14-6_i386.deb (--unpack):
  trying to overwrite `/usr/bin/imlib-config', which is also in package
 imlib-base

 Then a bunch of Unpacking and Selecting ... then 
 
 Errors were encountered while processing:
  /var/cache/apt/archives/gdk-imlib-dev_1.9.14-6_i386.deb
 E: Sub-process /usr/bin/dpkg returned an error code (1)

Wrong order isn't the problem here. dpkg tells you exactly why its
failing:

trying to overwrite `/usr/bin/imlib-config', which is also in package
imlib-base

This is the dpkg version of general protection fault. A package is
trying to mess with another package's files. dpkg caught what might be a
problem and stopped.

It' probably safe in this situation to do dpkg -i --force-overwrite
/var/cache/apt/archives/gdk-imlib-dev_1.9.14-6_i386.deb. man dpkg and
read about --force-things before you do this.

When that completes do apt-get dist-upgrade again.

Kevin


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]