Unix Technical Forum

SEO

vBulletin Search Engine Optimization


Go Back   Unix Technical Forum > Unix Operating Systems > Debian Linux > Debian Linux support

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-19-2008, 08:40 AM
Kai-Martin Knaak
 
Posts: n/a
Default circular dependency on upgrade from sarge

Hi,

I try to upgrade a box that had been running sarge for quite some time.
This seems to include an upgrade of an upgrade of libc6, which complains
that it needs a 2.6 kernel and suggests to install a proper kernel first.
Now the kernel currently run is indeed 2.4:
/------------------------
webber:/home/kmk# uname -a
Linux webber 2.4.27-2-586tsc #1 Wed Nov 30 21:29:45 JST 2005 i586 GNU/Linux
\------------------------

If I try to install a 2.6 kernel image I get:
/------------------------
webber:/home/kmk# apt-get install -t etch linux-image-2.6.18-5-486
Reading package lists... Done
Building dependency tree... Done
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
binutils: Depends: libc6 (>= 2.6-1) but 2.3.5-12.1 is to be installed
libc6-dev: Depends: libc6 (= 2.6.1-1) but 2.3.5-12.1 is to be installed
linux-image-2.6.18-5-486: Depends: coreutils (>= 5.96) but 5.93-5 is to be installed
Depends: initramfs-tools (>= 0.55) but it is not going to be installed or
yaird (>= 0.0.12-8) but it is not going to be installed or
linux-initramfs-tool
locales: Depends: glibc-2.6-1
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
\--------------------------

The suggested command gets me back to where I came from:
/--------------------------
webber:/home/kmk# apt-get -f install
Reading package lists... Done
Building dependency tree... Done
Correcting dependencies... Done
The following extra packages will be installed:
libc6
Suggested packages:
glibc-doc
The following packages will be upgraded:
libc6
1 upgraded, 0 newly installed, 0 to remove and 325 not upgraded.
5 not fully installed or removed.
Need to get 0B/4405kB of archives.
After unpacking 6242kB disk space will be freed.
Do you want to continue [Y/n]?
WARNING: The following packages cannot be authenticated!
libc6
Install these packages without verification [y/N]? y
(Reading database ... 35941 files and directories currently installed.)
Preparing to replace libc6 2.3.5-12.1 (using .../libc6_2.6.1-1_i386.deb) ...
WARNING: POSIX threads library NPTL requires kernel version
2.6.8 or later. If you use a kernel 2.4, please upgrade it
before installing glibc.

The installation of a 2.6 kernel _could_ ask you to install a new libc
first, this is NOT a bug, and should *NOT* be reported. In that case,
please add etch sources to your /etc/apt/sources.list and run:
apt-get install -t etch linux-image-2.6
Then reboot into this new kernel, and proceed with your upgrade
dpkg: error processing /var/cache/apt/archives/libc6_2.6.1-1_i386.deb (--unpack):
subprocess pre-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/libc6_2.6.1-1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
\--------------------------


This is my /etc/apt/sources.list
/-------------
deb ftp://debian.tu-bs.de/debian/ stable contrib main non-free
deb-src ftp://debian.tu-bs.de/debian/ stable contrib main non-free
deb ftp://debian.tu-bs.de/debian/ testing contrib main non-free
deb-src ftp://debian.tu-bs.de/debian/ testing contrib main non-free
\-------------

Any hint?

---<(kaimartin)>---
--
Kai-Martin Knaak
http://lilalaser.de/blog
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-19-2008, 08:40 AM
Rodney
 
Posts: n/a
Default Re: circular dependency on upgrade from sarge

[edit]
> Any hint?
>


Did you read the release notes for Etch previous to starting the upgrade?
And, did you follow the procedure in those release notes?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-19-2008, 08:40 AM
Kai-Martin Knaak
 
Posts: n/a
Default Re: circular dependency on upgrade from sarge

On Thu, 23 Aug 2007 04:15:52 -0700, Rodney wrote:

> Did you read the release notes for Etch previous to starting the
> upgrade? And, did you follow the procedure in those release notes?


<blush>Ok, you got me red handed </blush>
I overestimated the ability of "apt-get dist-upgrade" to deal with this
kind of problems.

What can I do to dig me out of this hole?
Use apt-get with some --force options?
Build a local kernel image from source?
Use the GUI interface of aptitude to manually select what packages to
install?

---<(kaimartin)>---
--
Kai-Martin Knaak
http://lilalaser.de/blog
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-19-2008, 08:40 AM
Anton Ertl
 
Posts: n/a
Default Re: circular dependency on upgrade from sarge

Kai-Martin Knaak <kmk@lilalaser.de> writes:
>On Thu, 23 Aug 2007 04:15:52 -0700, Rodney wrote:
>
>> Did you read the release notes for Etch previous to starting the
>> upgrade? And, did you follow the procedure in those release notes?

>
><blush>Ok, you got me red handed </blush>
>I overestimated the ability of "apt-get dist-upgrade" to deal with this
>kind of problems.


Don't worry, apt-get worked nicely for the sarge->etch upgrade on a
number of machines round here, while aptitude cause a lot of work that
eventually came to nothing: IIRC it wanted to deinstall lprng for
installing gthumb; apt-get installed gthumb without such nonsense, so
I went back to apt-get.

- anton
--
M. Anton Ertl Some things have to be seen to be believed
anton@mips.complang.tuwien.ac.at Most things have to be believed to be seen
http://www.complang.tuwien.ac.at/anton/home.html
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-19-2008, 08:40 AM
Fredderic
 
Posts: n/a
Default Re: circular dependency on upgrade from sarge

On Thu, 23 Aug 2007 14:25:39 GMT,
anton@mips.complang.tuwien.ac.at (Anton Ertl) wrote:

>> <blush>Ok, you got me red handed </blush>
>> I overestimated the ability of "apt-get dist-upgrade" to deal with
>> this kind of problems.

> Don't worry, apt-get worked nicely for the sarge->etch upgrade on a
> number of machines round here, while aptitude cause a lot of work that
> eventually came to nothing: IIRC it wanted to deinstall lprng for
> installing gthumb; apt-get installed gthumb without such nonsense, so
> I went back to apt-get.


I've had similar experiences with aptitude and synaptic and co.

I mean, I've had apt-get wanting to uninstall great swaths of my
system on numerous occasions. Right now it wants to uninstall pidgin
due to a conflict with the version of the pidgin and pidgin-data
packages, so I just sit back and relax for a week or two until they
sort it out. I've even accidentally let apt start ripping great chunks
out when I hit the wrong key before bolting to the toilet. That was fun
to recover from, even more fun than when it uninstalled
linux-utils, so I no longer had the getopt command. But then I run
Debian/Sid, so you get that.

But my attempts to use anything other than dselect/apt-get have run
into problems that they cruised through, and generally speaking, if
apt-get couldn't sort it out, neither could anything else.

The only thing missing from dselect/apt-get, is the ability to
track the difference between packages I've selected to install, and
packages that were installed as dependencies (and hence I'd like to see
removed when they're no longer needed).


Fredderic
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-19-2008, 08:40 AM
Paul Cupis
 
Posts: n/a
Default Re: circular dependency on upgrade from sarge

Kai-Martin Knaak wrote:
> This is my /etc/apt/sources.list
> /-------------
> deb ftp://debian.tu-bs.de/debian/ stable contrib main non-free
> deb-src ftp://debian.tu-bs.de/debian/ stable contrib main non-free
> deb ftp://debian.tu-bs.de/debian/ testing contrib main non-free
> deb-src ftp://debian.tu-bs.de/debian/ testing contrib main non-free
> \-------------
>
> Any hint?


Try commenting out the "testing" lines above, running apt-get update and
trying again? With the above and no apt/preference etc you will be
trying to run a mix of stable (etch) and testing (lenny) at the moment.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 01-19-2008, 08:40 AM
Rodney
 
Posts: n/a
Default Re: circular dependency on upgrade from sarge

On Thu, 23 Aug 2007 14:13:34 +0000, Kai-Martin Knaak wrote:

> On Thu, 23 Aug 2007 04:15:52 -0700, Rodney wrote:
>
>> Did you read the release notes for Etch previous to starting the
>> upgrade? And, did you follow the procedure in those release notes?

>
> <blush>Ok, you got me red handed </blush> I overestimated the ability of
> "apt-get dist-upgrade" to deal with this kind of problems.
>
> What can I do to dig me out of this hole? Use apt-get with some --force
> options? Build a local kernel image from source? Use the GUI interface of
> aptitude to manually select what packages to install?
>
> ---<(kaimartin)>---


I'm sorry I can't give you a definitive answer about this. You asked for a
hint and I thought by reading through the release notes you might be able
to determine what might work for the situation that your system got into.

You could try to do the dreaded "downgrade" to get back to a sarge install
(or something close) and start again but as poster Paul Cupis mentioned
about the testing lines, it looks like you weren't running a pure sarge
system anyway. Make sure you don't have anything pinned that could be
getting in the way of the package manager's ability to work. Slogging
through this manually may be what you end up doing, with a harsh but
useful lesson for the next release.

How customised is your system, you could save your /home and do a fresh
install of etch (possibly on a different partition) and then spend the
time to reconfigure anything that needs it. But manually dealing with that
libc6 issue might be enough. Paul Cupis's advice is probably what I
would try first. I truly wish you good luck.

Note: If you have been using apt-get all along, there usually are issues
with switching to aptitude. What you have to do is "keep all" first but
I don't think that would be advised at this point. It seems the
Debian developers have decided that Aptitude is the future, so I think we
might as well become familiar with it.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 01-19-2008, 08:40 AM
Rodney
 
Posts: n/a
Default Re: circular dependency on upgrade from sarge


An addition to the post.

Another thing for you to consider trying (if you're still at the same
point).
apt-get install -t etch linux-image-2.6.18-5-486 intramfs-tools
There was some mention of the initrd creator in your error report, perhaps
if you try to install the new kernel from etch and it at the same time...

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:48 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770