Announcement

Collapse
No announcement yet.

Mid-Upgrade Crisis

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Mid-Upgrade Crisis

    Alright well I was having problems before & in the middle of fixing them. It was overheating & that was causing many problems. I got that fixed for the most part but while i was attempting the upgrade.. it shut off. I boot it again & all i get is the GRUB command line. I've managed to enter commands & fix enough things to login thru command prompt but thats about it

    Code:
    sudo apt-get update
    Gives me a list of packages & an error:

    W: Some index files failed to download, they have been ignored, or old ones used instead.

    Code:
    sudo apt-get upgrade
    Basically gives me:

    You might want to run 'apt-get -f install' to correct these.
    The following packages have unmet dependencies:
    python2.6-dev: Depends: libssl-dev but it is not installed
    E: Unmet dependencies. Try using -f

    Code:
    sudo apt-get -f install
    Gives me the list saying 0 upgraded, 1 newly installed, 0 to remove & 1038 not upgraded.
    2 not fully installed or removed
    Need to get 0B/2012kb of archives
    After this operation, 5,841kB of additional disk space will be used

    I press y & enter & get this error:

    mkdir: cannot create directory 'var/spool/mail': File exists
    dpkg: error processing base-files (--configure):
    subprocess installed post-installation script returned error exit status 1
    Errors were encountered while processing:
    base-files
    E: Sub-process /usr/bin/dpkg returned an error code (1)

    Code:
    sudo dpkg --configure -a
    Basically gives me the same error. I cant update, upgrade, fix, install or pretty much anything from this. I have live CDs but Kubuntu always had a problem with my cd drive & it never reads & if it does it takes 6+ hours to finally work. I have a USB drive & another computer available. Any suggestions on what to do? It would be greatly appreciated

    Thanks in advance

    #2
    Re: Mid-Upgrade Crisis

    If you can only log in from the command prompt the problem may be that you do not have an active internet connection and thus the error 'Some index files failed to download'.

    When you log in try:
    Code:
    ping google.com
    and see if you get a response. (Ctrl-C to end it)

    Unfortunately I am unsure how to connect through the command prompt but if this is the issue I am sure some google'ing will get you somewhere or someone else can guide you.

    Comment


      #3
      Re: Mid-Upgrade Crisis

      Well I managed to get a connection using

      Code:
      ifconfig eth0 up
      Its read & checked the updates & all that, but now Im stuck with

      dpkg: dependency problems prevent configuration of python2.6-dev:
      python2.6-dev depends on libssl-dev; however :
      Package libssl-dev is not installed.
      dpkg: error processing python2.6-dev leaving unconfigured
      setting up base-files (5.0.0ubuntu23)...
      mkdir: cannot create directory 'var/spool/mail': File exists
      dpkg: error processing base-files (--configure):
      subprocess installed post-installation script returned error exit status 1
      Errors were encountered while processing:
      base-files
      E: Sub-process /usr/bin/dpkg returned an error code
      That error seems to be the main problem. Ive been looking & googling since yesterday. Appreciate your help now all i need is to get past this.. With access to the internet im sure it can be fixed somehow. Just need to figure out what command or what needs to be done from here to fix the base-files issue so i can at least get out of this command line

      Comment


        #4
        Re: Mid-Upgrade Crisis

        I think you can fix it by editing the /etc/apt/sources.list file and uncommenting all the entries. I think that missing file is in one of the commented repositories. To edit that file from the command prompt.
        Code:
        vi /etc/apt/sources.list
        To save the file and exit vi, :exit. Tye a ":" then enter the word "exit". That will take you back to the command prompt where you can run apt-get update, then apt-get upgrade. If you get the same error, try dpkg --configure -a again.

        Quick correction. Do not uncomment the lines that refer to the cdrom.

        Comment


          #5
          Re: Mid-Upgrade Crisis

          Still stuck with the base-files issue. Cant seem to configure it, reinstall it, or anything. & I dont think removing it seems like a good idea either considering it lists bash & login & a few other packages as dependencies

          Any other ideas or suggestions?

          Comment


            #6
            Re: Mid-Upgrade Crisis

            I think dpkg itself is borked, and nothing else will work without it. Probably looking at a complete reinstall.

            Comment


              #7
              Re: Mid-Upgrade Crisis

              Well that wouldnt be too bad.. Only thing is if i have to how can i do that without the ability to use a cd?

              Comment


                #8
                Re: Mid-Upgrade Crisis

                mkdir: cannot create directory 'var/spool/mail': File exists
                Seeing that you are quite ready to ditch the system I'd try and delete var/spool/mail and see what dpkg comes up with next. Also, does it not have a "force" flag? man dpkg should tell (sorry, I'm not on a debian based system).

                And now for the reinstall if the above approach doesn't work - you don't have a CD but I take it you have a USB stick which you can boot from? Further instructions here.
                Once your problem is solved please mark the topic of the first post as SOLVED so others know and can benefit from your experience! / FAQ

                Comment


                  #9
                  Re: Mid-Upgrade Crisis

                  dpkg forcing options - control behaviour when problems found:
                  warn but continue: --force-<thing>,<thing>,...
                  stop with error: --refuse-<thing>,<thing>,... | --no-force-<thing>,...
                  Forcing things:
                  all [!] Set all force options
                  downgrade[*] Replace a package with a lower version
                  configure-any Configure any package which may help this one
                  hold Process incidental packages even when on hold
                  bad-path PATH is missing important programs, problems likely
                  not-root Try to (de)install things even when not root
                  overwrite Overwrite a file from one package with another
                  overwrite-diverted Overwrite a diverted file with an undiverted version
                  bad-verify Install a package even if it fails authenticity check
                  depends-version [!] Turn dependency version problems into warnings
                  depends [!] Turn all dependency problems into warnings
                  confnew [!] Always use the new config files, don't prompt
                  confold [!] Always use the old config files, don't prompt
                  confdef [!] Use the default option for new config files if one
                  is available, don't prompt. If no default can be found,
                  you will be prompted unless one of the confold or
                  confnew options is also given
                  confmiss [!] Always install missing config files
                  confask [!] Offer to replace config files with no new versions
                  breaks [!] Install even if it would break another package
                  conflicts [!] Allow installation of conflicting packages
                  architecture [!] Process even packages with wrong architecture
                  overwrite-dir [!] Overwrite one package's directory with another's file
                  remove-reinstreq [!] Remove packages which require installation
                  remove-essential [!] Remove an essential package

                  WARNING - use of options marked [!] can seriously damage your installation.
                  Forcing options marked[*] are enabled by default.

                  Comment


                    #10
                    Re: Mid-Upgrade Crisis

                    I'm not sure dpkg forcing options will help in this case, as the problem is in the postinstallation script (that is run after files have been installed).

                    the base-files postinstallation script (/var/lib/dpkg/info/base-files.postinst) is trying to create a directory (/var/spool/mail) that already exists (actually a symlink to /var/mail) and mkdir exits with error that halts the configuration process. The script should check whether the dir (or link) exists before trying to create it, but there is probably something wrong with the routine.

                    I'd go with toad: remove the /var/spool/mail symlink, let dpkg do it's thing, and recreate the link if needed (if dpkg doesn't create a link but a directory instead)...I (or someone else) can give you more detailed instructions if needed.

                    Comment


                      #11
                      Re: Mid-Upgrade Crisis

                      Well I removed that folder & was able to get it installed after a few other things. Still got a few problems. Thanks for everyones help & advice. My network manager seems a little whacked.. At first it read nothing got a little further but all im getting is.. Wireless unavailable & wired unplugged. I can get wireless & wired connected thru the terminal but it still doesnt change in the systray & id rather not have to do it everytime as I know its not normal

                      & my sound as well. Its reading the card & ive been trying to fix for hours.. but it just wont work. It worked earlier this morning, a reboot & it stopped. I get a consolekit error everytime i log into kde & occasionally a kmix error

                      Any ideas on these?

                      Comment


                        #12
                        Re: Mid-Upgrade Crisis

                        Sorry for the double post but some more information on the sound.. It seemed to stop reading soundcard at some point probably due to the fixes I attempted

                        nawfhtx@nawfhtx-laptop:~$ sudo modprobe snd-hda-intel
                        WARNING: All config files need .conf: /etc/modprobe.d/alsa-base.save, it will be ignored in a future release.
                        WARNING: Could not read '/lib/modules/2.6.35-23-generic/kernel/sound/core/snd-page-alloc.ko': No such file or directory
                        WARNING: All config files need .conf: /etc/modprobe.d/alsa-base.save, it will be ignored in a future release.
                        FATAL: Could not read '/lib/modules/2.6.35-23-generic/kernel/sound/core/snd.ko': No such file or directory
                        WARNING: Error running install command for snd
                        WARNING: Could not read '/lib/modules/2.6.35-23-generic/kernel/sound/core/snd-timer.ko': No such file or directory
                        WARNING: All config files need .conf: /etc/modprobe.d/alsa-base.save, it will be ignored in a future release.
                        WARNING: Could not read '/lib/modules/2.6.35-23-generic/kernel/sound/core/snd-page-alloc.ko': No such file or directory
                        WARNING: All config files need .conf: /etc/modprobe.d/alsa-base.save, it will be ignored in a future release.
                        FATAL: Could not read '/lib/modules/2.6.35-23-generic/kernel/sound/core/snd.ko': No such file or directory
                        WARNING: Error running install command for snd
                        WARNING: Could not read '/lib/modules/2.6.35-23-generic/kernel/sound/core/snd-timer.ko': No such file or directory
                        FATAL: Could not read '/lib/modules/2.6.35-23-generic/kernel/sound/core/snd-pcm.ko': No such file or directory
                        WARNING: Error running install command for snd_pcm
                        WARNING: Could not read '/lib/modules/2.6.35-23-generic/kernel/sound/core/snd-hwdep.ko': No such file or directory
                        WARNING: Could not read '/lib/modules/2.6.35-23-generic/kernel/sound/pci/hda/snd-hda-codec.ko': No such file or directory
                        FATAL: Could not read '/lib/modules/2.6.35-23-generic/kernel/sound/pci/hda/snd-hda-intel.ko': No such file or directory
                        Still no luck with the NetworkManager either. Anyone else?

                        Comment


                          #13
                          Re: Mid-Upgrade Crisis

                          Follow the instructions here will get your wired network working, then you can install wicd which should let you get your wireless working.

                          http://kubuntuforums.net/forums/inde...opic=3100052.0

                          Comment


                            #14
                            Re: Mid-Upgrade Crisis

                            Thanks that got rid of the problem with the wireless & im not too worried about the ethernet. Didnt think Id have to use WICD again it had been fixed wit network-manager for me for a while. But better than connecting thru the terminal everytime

                            Im attempting to reinstall the alsa drivers but im getting an error during compilation

                            Code:
                            make -C /lib/modules/2.6.35-23-generic/build SUBDIRS=/usr/src/alsa/alsa-driver-1.0.23 CPP="gcc -E" CC="gcc" modules
                            make[1]: Entering directory `/usr/src/linux-headers-2.6.35-23-generic'
                             CC [M] /usr/src/alsa/alsa-driver-1.0.23/acore/hrtimer.o
                            In file included from /usr/src/alsa/alsa-driver-1.0.23/include/config.h:6,
                                     from /usr/src/alsa/alsa-driver-1.0.23/include/adriver.h:25,
                                     from /usr/src/alsa/alsa-driver-1.0.23/acore/hrtimer.c:1:
                            /usr/src/alsa/alsa-driver-1.0.23/include/config1.h:175: warning: "CONFIG_SND_HDA_INPUT_BEEP_MODE" redefined
                            ./include/generated/autoconf.h:2222: note: this is the location of the previous definition
                             CC [M] /usr/src/alsa/alsa-driver-1.0.23/acore/hwdep.o
                            In file included from /usr/src/alsa/alsa-driver-1.0.23/include/config.h:6,
                                     from /usr/src/alsa/alsa-driver-1.0.23/include/adriver.h:25,
                                     from /usr/src/alsa/alsa-driver-1.0.23/acore/hwdep.c:1:
                            /usr/src/alsa/alsa-driver-1.0.23/include/config1.h:175: warning: "CONFIG_SND_HDA_INPUT_BEEP_MODE" redefined
                            ./include/generated/autoconf.h:2222: note: this is the location of the previous definition
                            In file included from /usr/src/alsa/alsa-driver-1.0.23/include/config.h:6,
                                     from /usr/src/alsa/alsa-driver-1.0.23/include/adriver.h:25,
                                     from /usr/src/alsa/alsa-driver-1.0.23/acore/hwdep.c:1:
                            /usr/src/alsa/alsa-driver-1.0.23/include/config1.h:175: warning: "CONFIG_SND_HDA_INPUT_BEEP_MODE" redefined
                            ./include/generated/autoconf.h:2222: note: this is the location of the previous definition
                             CC [M] /usr/src/alsa/alsa-driver-1.0.23/acore/memory_wrapper.o
                            In file included from /usr/src/alsa/alsa-driver-1.0.23/include/config.h:6,
                                     from /usr/src/alsa/alsa-driver-1.0.23/include/alsa-autoconf.h:4,
                                     from /usr/src/alsa/alsa-driver-1.0.23/acore/memory_wrapper.c:1:
                            /usr/src/alsa/alsa-driver-1.0.23/include/config1.h:175: warning: "CONFIG_SND_HDA_INPUT_BEEP_MODE" redefined
                            ./include/generated/autoconf.h:2222: note: this is the location of the previous definition
                             CC [M] /usr/src/alsa/alsa-driver-1.0.23/acore/memalloc.o
                            In file included from /usr/src/alsa/alsa-driver-1.0.23/include/config.h:6,
                                     from /usr/src/alsa/alsa-driver-1.0.23/include/alsa-autoconf.h:4,
                                     from /usr/src/alsa/alsa-driver-1.0.23/acore/memalloc.inc:1,
                                     from /usr/src/alsa/alsa-driver-1.0.23/acore/memalloc.c:1:
                            /usr/src/alsa/alsa-driver-1.0.23/include/config1.h:175: warning: "CONFIG_SND_HDA_INPUT_BEEP_MODE" redefined
                            ./include/generated/autoconf.h:2222: note: this is the location of the previous definition
                            In file included from /usr/src/alsa/alsa-driver-1.0.23/include/config.h:6,
                                     from /usr/src/alsa/alsa-driver-1.0.23/include/alsa-autoconf.h:4,
                                     from /usr/src/alsa/alsa-driver-1.0.23/acore/memalloc.inc:1,
                                     from /usr/src/alsa/alsa-driver-1.0.23/acore/memalloc.c:1:
                            /usr/src/alsa/alsa-driver-1.0.23/include/config1.h:175: warning: "CONFIG_SND_HDA_INPUT_BEEP_MODE" redefined
                            ./include/generated/autoconf.h:2222: note: this is the location of the previous definition
                             CC [M] /usr/src/alsa/alsa-driver-1.0.23/acore/sgbuf.o
                            In file included from /usr/src/alsa/alsa-driver-1.0.23/include/config.h:6,
                                     from /usr/src/alsa/alsa-driver-1.0.23/include/alsa-autoconf.h:4,
                                     from /usr/src/alsa/alsa-driver-1.0.23/acore/sgbuf.c:1:
                            /usr/src/alsa/alsa-driver-1.0.23/include/config1.h:175: warning: "CONFIG_SND_HDA_INPUT_BEEP_MODE" redefined
                            ./include/generated/autoconf.h:2222: note: this is the location of the previous definition
                             CC [M] /usr/src/alsa/alsa-driver-1.0.23/acore/pcm.o
                            In file included from /usr/src/alsa/alsa-driver-1.0.23/include/config.h:6,
                                     from /usr/src/alsa/alsa-driver-1.0.23/include/adriver.h:25,
                                     from /usr/src/alsa/alsa-driver-1.0.23/acore/pcm.c:1:
                            /usr/src/alsa/alsa-driver-1.0.23/include/config1.h:175: warning: "CONFIG_SND_HDA_INPUT_BEEP_MODE" redefined
                            ./include/generated/autoconf.h:2222: note: this is the location of the previous definition
                            In file included from /usr/src/alsa/alsa-driver-1.0.23/include/config.h:6,
                                     from /usr/src/alsa/alsa-driver-1.0.23/include/adriver.h:25,
                                     from /usr/src/alsa/alsa-driver-1.0.23/acore/pcm.c:1:
                            /usr/src/alsa/alsa-driver-1.0.23/include/config1.h:175: warning: "CONFIG_SND_HDA_INPUT_BEEP_MODE" redefined
                            ./include/generated/autoconf.h:2222: note: this is the location of the previous definition
                             CC [M] /usr/src/alsa/alsa-driver-1.0.23/acore/pcm_native.o
                            In file included from /usr/src/alsa/alsa-driver-1.0.23/include/config.h:6,
                                     from /usr/src/alsa/alsa-driver-1.0.23/include/adriver.h:25,
                                     from /usr/src/alsa/alsa-driver-1.0.23/acore/pcm_native.c:2:
                            /usr/src/alsa/alsa-driver-1.0.23/include/config1.h:175: warning: "CONFIG_SND_HDA_INPUT_BEEP_MODE" redefined
                            ./include/generated/autoconf.h:2222: note: this is the location of the previous definition
                            /usr/src/alsa/alsa-driver-1.0.23/acore/pcm_native.c: In function ‘snd_pcm_hw_params’:
                            /usr/src/alsa/alsa-driver-1.0.23/acore/pcm_native.c:489: error: implicit declaration of function ‘pm_qos_remove_requirement’
                            /usr/src/alsa/alsa-driver-1.0.23/acore/pcm_native.c:492: error: implicit declaration of function ‘pm_qos_add_requirement’
                            make[3]: *** [/usr/src/alsa/alsa-driver-1.0.23/acore/pcm_native.o] Error 1
                            make[2]: *** [/usr/src/alsa/alsa-driver-1.0.23/acore] Error 2
                            make[1]: *** [_module_/usr/src/alsa/alsa-driver-1.0.23] Error 2
                            make[1]: Leaving directory `/usr/src/linux-headers-2.6.35-23-generic'
                            make: *** [compile] Error 2
                            Not sure if its a bug or something I can do.. Hopefully someone can shed more light on the subject

                            Update: Managed to get the sound card detected again.. Getting the 'audio playback device HDA ATI SB ALC268 does not work' notification though. Been googling & trying for a while now.. Ive edited the alsa-base.conf file, removed pulseaudio & quite a few other things but still no luck

                            Update 2: I realized I have sound in rekonq.. so its running thru flash. So it must be a configuration error by the system trying to read it im assuming?

                            Comment

                            Working...
                            X