Find the answer to your Linux question:
Results 1 to 6 of 6
Hi, I am trying to go from from etch dist to sid dist. My kernel version in etch is 2.6.18.xx and sid is 2.6.24.xx While I used this command apt-get ...
  1. #1
    Just Joined!
    Join Date
    Aug 2007
    Posts
    18

    [SOLVED] problems trying to go from etch to sid

    Hi,

    I am trying to go from from etch dist to sid dist.
    My kernel version in etch is 2.6.18.xx and sid is 2.6.24.xx


    While I used this command
    apt-get update
    apt-get upgrade

    it failed at some point. Here is log of what I might need to solve before knowing what else went wrong

    --------------------------------
    mkandula-linux:~# apt-get upgrade
    Reading package lists... Done
    Building dependency tree... Done
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    2 not fully installed or removed.
    After this operation, 0B of additional disk space will be used.
    Do you want to continue [Y/n]? y
    Setting up acpid (1.0.6-5.1) ...
    tar: Removing leading `/' from member names
    tar: /etc/logrotate.d/acpid*: Cannot stat: No such file or directory
    tar: /var/log/acpid*: Cannot stat: No such file or directory
    tar: /etc/acpi/powerbtn.sh*: Cannot stat: No such file or directory
    tar: /etc/acpi/events/powerbtn*: Cannot stat: No such file or directory
    tar: Error exit delayed from previous errors
    Stopping Hardware abstraction layer: hald.
    Loading ACPI modules....
    Starting Advanced Configuration and Power Interface daemon...invoke-rc.d: initscript acpid, action "start" failed.
    dpkg: error processing acpid (--configure):
    subprocess post-installation script returned error exit status 1
    Setting up gcc (4:4.2.3-7) ...
    mv: cannot overwrite non-directory `/usr/bin/cc' with directory `/usr/bin'
    update-alternatives: unable to rename /usr/bin to /usr/bin/cc: Invalid argument
    dpkg: error processing gcc (--configure):
    subprocess post-installation script returned error exit status 2
    Errors were encountered while processing:
    acpid
    gcc
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    mkandula-linux:~#
    ---------------------------------


    any help is very much appreciated.

  2. #2
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,343
    You probably should have used dist-upgrade instead of upgrade. What happens when you run
    Code:
    aptitude update
    aptitude dist-upgrade

  3. #3
    Just Joined!
    Join Date
    Aug 2007
    Posts
    18
    I am trying your commands let me come back with the output..

    also what is the main problem here ? any hints to diagnize this problem ?....

  4. #4
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,343
    The problem is related to the acpi package. It seems like there is some sort of problem with the scripts.

  5. #5
    Just Joined!
    Join Date
    Aug 2007
    Posts
    18
    here is the output...still seems to be the same problem

    -----------------------


    mkandula-linux:~# aptitude update
    Writing extended state information... Done
    Hit ftp.osuosl.org :: Oregon State University Open Source Lab sid Release.gpg
    Ign ftp.osuosl.org :: Oregon State University Open Source Lab sid/main Translation-en_IN
    Hit Debian -- Security Information etch/updates Release.gpg
    Ign Debian -- Security Information etch/updates/main Translation-en_IN
    Ign ftp.osuosl.org :: Oregon State University Open Source Lab sid/contrib Translation-en_IN
    Hit ftp.osuosl.org :: Oregon State University Open Source Lab sid Release
    Ign Debian -- Security Information etch/updates/contrib Translation-en_IN
    Hit Debian -- Security Information etch/updates Release
    Hit ftp.osuosl.org :: Oregon State University Open Source Lab sid/main Packages/DiffIndex
    Ign Debian -- Security Information etch/updates/main Packages/DiffIndex
    Hit ftp.osuosl.org :: Oregon State University Open Source Lab sid/contrib Packages/DiffIndex
    Hit ftp.osuosl.org :: Oregon State University Open Source Lab sid/main Sources/DiffIndex
    Hit ftp.osuosl.org :: Oregon State University Open Source Lab sid/contrib Sources/DiffIndex
    Ign Debian -- Security Information etch/updates/contrib Packages/DiffIndex
    Ign Debian -- Security Information etch/updates/main Sources/DiffIndex
    Ign Debian -- Security Information etch/updates/contrib Sources/DiffIndex
    Hit Debian -- Security Information etch/updates/main Packages
    Hit Debian -- Security Information etch/updates/contrib Packages
    Hit Debian -- Security Information etch/updates/main Sources
    Hit Debian -- Security Information etch/updates/contrib Sources
    Reading package lists... Done
    Updating debtags database...... Done

    mkandula-linux:~# aptitude dist-upgrade
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Reading extended state information
    Initializing package states... Done
    Reading task descriptions... Done
    The following packages will be REMOVED:
    libiw28{u}
    The following packages will be upgraded:
    kdesvn kdesvn-kio-plugins kdevelop kdevelop-data kdevelop-doc libicu36
    libpoppler0c2 libpoppler0c2-glib libsvnqt4 linux-image-2.6.18-6-686
    linux-source-2.6.18 sudo
    The following partially installed packages will be configured:
    acpid gcc
    The following packages are RECOMMENDED but will NOT be installed:
    graphviz kompare
    12 packages upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
    Need to get 82.2MB of archives. After unpacking 750kB will be used.
    Do you want to continue? [Y/n/?] y
    Writing extended state information... Done
    Get:1 ftp.osuosl.org :: Oregon State University Open Source Lab sid/main libsvnqt4 0.14.3-1 [108kB]
    Get:2 Debian -- Security Information etch/updates/main linux-image-2.6.18-6-686 2.6.18.dfsg.1-18etch1 [16.5MB]
    Get:3 ftp.osuosl.org :: Oregon State University Open Source Lab sid/main kdesvn 0.14.3-1 [1685kB]
    Get:4 ftp.osuosl.org :: Oregon State University Open Source Lab sid/main kdesvn-kio-plugins 0.14.3-1 [178kB]
    Get:5 ftp.osuosl.org :: Oregon State University Open Source Lab sid/main kdevelop-data 4:3.5.1-1 [2846kB]
    Get:6 ftp.osuosl.org :: Oregon State University Open Source Lab sid/main kdevelop 4:3.5.1-1 [8971kB]
    Get:7 ftp.osuosl.org :: Oregon State University Open Source Lab sid/main kdevelop-doc 4:3.5.1-1 [3698kB]
    Get:8 Debian -- Security Information etch/updates/main libicu36 3.6-2etch1 [5469kB]
    Get:9 ftp.osuosl.org :: Oregon State University Open Source Lab sid/main sudo 1.6.9p15-1 [175kB]
    Get:10 Debian -- Security Information etch/updates/main libpoppler0c2-glib 0.4.5-5.1etch2 [40.6kB]
    Get:11 Debian -- Security Information etch/updates/main libpoppler0c2 0.4.5-5.1etch2 [443kB]
    Get:12 Debian -- Security Information etch/updates/main linux-source-2.6.18 2.6.18.dfsg.1-18etch1 [42.2MB]
    Fetched 82.2MB in 40min44s (33.6kB/s)
    Preconfiguring packages ...
    (Reading database ... 113513 files and directories currently installed.)
    Removing libiw28 ...
    (Reading database ... 113508 files and directories currently installed.)
    Preparing to replace linux-image-2.6.18-6-686 2.6.18.dfsg.1-17etch1 (using .../linux-image-2.6.18-6-686_2.6.18.dfsg.1-18etch1_i386.deb) ...
    The directory /lib/modules/2.6.18-6-686 still exists. Continuing as directed.
    Done.
    Unpacking replacement linux-image-2.6.18-6-686 ...
    Running postrm hook script /sbin/update-grub.
    Searching for GRUB installation directory ... found: /boot/grub
    Searching for default file ... found: /boot/grub/default
    Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
    Searching for splash image ... none found, skipping ...
    Found kernel: /boot/vmlinuz-2.6.24-1-686
    Found kernel: /boot/vmlinuz-2.6.18-6-686
    Found kernel: /boot/vmlinuz-2.6.18-5-686
    Updating /boot/grub/menu.lst ... done

    Preparing to replace libsvnqt4 0.14.2-2 (using .../libsvnqt4_0.14.3-1_i386.deb) ...
    Unpacking replacement libsvnqt4 ...
    Preparing to replace kdesvn 0.14.2-2 (using .../kdesvn_0.14.3-1_i386.deb) ...
    Unpacking replacement kdesvn ...
    Preparing to replace kdesvn-kio-plugins 0.14.2-2 (using .../kdesvn-kio-plugins_0.14.3-1_i386.deb) ...
    Unpacking replacement kdesvn-kio-plugins ...
    Preparing to replace kdevelop-data 4:3.5.0-3 (using .../kdevelop-data_4%3a3.5.1-1_all.deb) ...
    Unpacking replacement kdevelop-data ...
    Preparing to replace kdevelop 4:3.5.0-3 (using .../kdevelop_4%3a3.5.1-1_i386.deb) ...
    Unpacking replacement kdevelop ...
    Preparing to replace kdevelop-doc 4:3.5.0-3 (using .../kdevelop-doc_4%3a3.5.1-1_all.deb) ...
    Unpacking replacement kdevelop-doc ...
    Preparing to replace libicu36 3.6-2 (using .../libicu36_3.6-2etch1_i386.deb) ...
    Unpacking replacement libicu36 ...
    Preparing to replace libpoppler0c2-glib 0.4.5-5.1etch1 (using .../libpoppler0c2-glib_0.4.5-5.1etch2_i386.deb) ...
    Unpacking replacement libpoppler0c2-glib ...
    Preparing to replace libpoppler0c2 0.4.5-5.1etch1 (using .../libpoppler0c2_0.4.5-5.1etch2_i386.deb) ...
    Unpacking replacement libpoppler0c2 ...
    Preparing to replace linux-source-2.6.18 2.6.18.dfsg.1-17etch1 (using .../linux-source-2.6.18_2.6.18.dfsg.1-18etch1_all.deb) ...
    Unpacking replacement linux-source-2.6.18 ...
    Preparing to replace sudo 1.6.9p12-1 (using .../sudo_1.6.9p15-1_i386.deb) ...
    Unpacking replacement sudo ...
    Setting up acpid (1.0.6-5.1) ...
    tar: Removing leading `/' from member names
    tar: /etc/logrotate.d/acpid*: Cannot stat: No such file or directory
    tar: /var/log/acpid*: Cannot stat: No such file or directory
    tar: /etc/acpi/powerbtn.sh*: Cannot stat: No such file or directory
    tar: /etc/acpi/events/powerbtn*: Cannot stat: No such file or directory
    tar: Error exit delayed from previous errors
    Stopping Hardware abstraction layer: hald.
    Loading ACPI modules....
    Starting Advanced Configuration and Power Interface daemon...invoke-rc.d: initscript acpid, action "start" failed.
    dpkg: error processing acpid (--configure):
    subprocess post-installation script returned error exit status 1
    Setting up gcc (4:4.2.3-7) ...
    mv: cannot overwrite non-directory `/usr/bin/cc' with directory `/usr/bin'
    update-alternatives: unable to rename /usr/bin to /usr/bin/cc: Invalid argument
    dpkg: error processing gcc (--configure):
    subprocess post-installation script returned error exit status 2
    Setting up linux-image-2.6.18-6-686 (2.6.18.dfsg.1-18etch1) ...

    Hmm. The package shipped with a symbolic link /lib/modules/2.6.18-6-686/source
    However, I can not read the target: No such file or directory
    Therefore, I am deleting /lib/modules/2.6.18-6-686/source

    Running depmod.
    Finding valid ramdisk creators.
    Using mkinitramfs-kpkg to build the ramdisk.
    Not updating initrd symbolic links since we are being updated/reinstalled
    (2.6.18.dfsg.1-17etch1 was configured last, according to dpkg)
    Not updating image symbolic links since we are being updated/reinstalled
    (2.6.18.dfsg.1-17etch1 was configured last, according to dpkg)
    Running postinst hook script /sbin/update-grub.
    Searching for GRUB installation directory ... found: /boot/grub
    Searching for default file ... found: /boot/grub/default
    Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
    Searching for splash image ... none found, skipping ...
    Found kernel: /boot/vmlinuz-2.6.24-1-686
    Found kernel: /boot/vmlinuz-2.6.18-6-686
    Found kernel: /boot/vmlinuz-2.6.18-5-686
    Updating /boot/grub/menu.lst ... done

    Setting up libsvnqt4 (0.14.3-1) ...
    Setting up kdesvn-kio-plugins (0.14.3-1) ...
    Setting up kdesvn (0.14.3-1) ...
    Setting up kdevelop-data (4:3.5.1-1) ...
    Setting up kdevelop (4:3.5.1-1) ...
    Setting up kdevelop-doc (4:3.5.1-1) ...
    Setting up libicu36 (3.6-2etch1) ...
    Setting up libpoppler0c2 (0.4.5-5.1etch2) ...
    Setting up libpoppler0c2-glib (0.4.5-5.1etch2) ...
    Setting up linux-source-2.6.18 (2.6.18.dfsg.1-18etch1) ...
    Setting up sudo (1.6.9p15-1) ...
    Errors were encountered while processing:
    acpid
    gcc
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    A package failed to install. Trying to recover:
    Setting up acpid (1.0.6-5.1) ...
    tar: Removing leading `/' from member names
    tar: /etc/logrotate.d/acpid*: Cannot stat: No such file or directory
    tar: /var/log/acpid*: Cannot stat: No such file or directory
    tar: /etc/acpi/powerbtn.sh*: Cannot stat: No such file or directory
    tar: /etc/acpi/events/powerbtn*: Cannot stat: No such file or directory
    tar: Error exit delayed from previous errors
    Stopping Hardware abstraction layer: hald.
    Loading ACPI modules....
    Starting Advanced Configuration and Power Interface daemon...invoke-rc.d: initscript acpid, action "start" failed.
    dpkg: error processing acpid (--configure):
    subprocess post-installation script returned error exit status 1
    Setting up gcc (4:4.2.3-7) ...
    mv: cannot overwrite non-directory `/usr/bin/cc' with directory `/usr/bin'
    update-alternatives: unable to rename /usr/bin to /usr/bin/cc: Invalid argument
    dpkg: error processing gcc (--configure):
    subprocess post-installation script returned error exit status 2
    Errors were encountered while processing:
    acpid
    gcc
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Reading extended state information
    Initializing package states... Done
    Writing extended state information... Done
    Reading task descriptions... Done

    There are now 0 updates [-12].

  6. #6
    Just Joined!
    Join Date
    Aug 2007
    Posts
    18
    ok...fixed the problem..

    first I had to stop the ACPI stuff manually

    second there was a script problem where I had to change
    /usr/bin/cc to /usr/bin

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •