Announcement

Collapse
No announcement yet.

Missing packages (?) after fsck

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

    Missing packages (?) after fsck

    Hi!
    Today when I booted into my Kubuntu it said that it wasn't shut down cleanly and needed to check sda1. At 61% it failed and dropped to console. It said that I should run fsck manually. I did. It found errors and I answered all the questions with "y". That allowed me to boot into kde. (I haven't rebooted since). For now it all seems ok, except:
    1. Firefox looks ugly (gtk+). And There is no Gtk+ option in System settings. I have "gtk2-engines-qtcurve" installed.
    2. When I install a package with "sudo apt-get install xxxxx" I get lots of errors - "dpkg: serious warning: files list file for package `libgnome-media0' missing, assuming package has no files currently installed." The is a LOT of these.

    I need help. Can I fix this? What happened in the first place (system shut down fine yesterday)?

    B

    #2
    Re: Missing packages (?) after fsck

    Hi TheBlaze


    Your first question:

    Not sure. Is the Firefox install ok since the crash? Might be worth reinstalling it??


    Your second question:

    Have you updated (reloaded) your package list since the system/HDD went south on you?
    - the Reload button within Synaptic
    - "sudo apt-get update" within a terminal (eg. Kontact)

    Sounds like it may have got corrupted/truncated or the like.


    What Happened:

    Sounds like either the system previously stopped in a real hurry (very uncleanly) or that your HDD was playing up (I once had a similar problem as you described with a niggly HDD).

    From your first line "my Kubuntu it said that it wasn't shut down cleanly" indicates that it had not halted 100% at the time before (and all data was not written to the HDD).


    Hope this helps


    Andy

    Comment


      #3
      Re: Missing packages (?) after fsck

      Thank you for your reply!

      I now know what happened to the hdd. I ran Data Lifeguard Diagnostic from WD and it found (and repaired) errors. And WD says the drive should be ok now.

      As for kubuntu:
      I tried:
      - sudo apt-get update && sudo apt-get dist-upgrade
      - sudo apt-get install kubuntu-desktop --reinstall
      and some other stuff that I dont remember (I'm at work now). This didn't help.

      Firefox is fine. It just looks like native gtk+ app, and not like it did before. And I have no option to set the appearance of Gtk+ apps (in System Settings -> Look and feel ->...). There I could choose gtk engines like Qt-Curve.

      Also some directories are missing. MySQL admin(?) something about konsole,...

      Can this be fixed? Can I reinstall? Find out what is missing?

      Every idea would be appreciated.

      Comment


        #4
        Re: Missing packages (?) after fsck

        you could try in this oder

        Code:
        sudo apt-get update
        Code:
        sudo apt-get check
        Code:
        sudo apt-get -f install
        Code:
        sudo dpkg --configure -a
        VINNY
        i7 4core HT 8MB L3 2.9GHz
        16GB RAM
        Nvidia GTX 860M 4GB RAM 1152 cuda cores

        Comment


          #5
          Re: Missing packages (?) after fsck

          @vinnywright
          Sadly no. Nothing was installed.

          I gues the problem is not that packages are not installed, but the files are missing. So apt doesn't know that something is wrong. Isn't there a way to reinstall all the (k)ubuntu packages?

          Comment


            #6
            Re: Missing packages (?) after fsck

            Please post the output of
            Code:
            cat /etc/apt/sources.list

            Comment


              #7
              Re: Missing packages (?) after fsck

              # deb cdrom:[Kubuntu 8.10 _Intrepid Ibex_ - Release amd64 (20081029.1)]/ intrepid main restricted
              # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
              # newer versions of the distribution.

              deb http://archive.ubuntu.com/ubuntu/ jaunty main restricted
              deb-src http://archive.ubuntu.com/ubuntu/ jaunty main restricted

              ## Major bug fix updates produced after the final release of the
              ## distribution.
              deb http://archive.ubuntu.com/ubuntu/ jaunty-updates main restricted
              deb-src http://archive.ubuntu.com/ubuntu/ jaunty-updates main restricted

              ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
              ## team. Also, please note that software in universe WILL NOT receive any
              ## review or updates from the Ubuntu security team.
              deb http://archive.ubuntu.com/ubuntu/ jaunty universe
              deb-src http://archive.ubuntu.com/ubuntu/ jaunty universe
              deb http://archive.ubuntu.com/ubuntu/ jaunty-updates universe
              deb-src http://archive.ubuntu.com/ubuntu/ jaunty-updates universe

              ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
              ## team, and may not be under a free licence. Please satisfy yourself as to
              ## your rights to use the software. Also, please note that software in
              ## multiverse WILL NOT receive any review or updates from the Ubuntu
              ## security team.
              deb http://archive.ubuntu.com/ubuntu/ jaunty multiverse
              deb-src http://archive.ubuntu.com/ubuntu/ jaunty multiverse
              deb http://archive.ubuntu.com/ubuntu/ jaunty-updates multiverse
              deb-src http://archive.ubuntu.com/ubuntu/ jaunty-updates multiverse

              ## Uncomment the following two lines to add software from the 'backports'
              ## repository.
              ## N.B. software from this repository may not have been tested as
              ## extensively as that contained in the main release, although it includes
              ## newer versions of some applications which may provide useful features.
              ## Also, please note that software in backports WILL NOT receive any review
              ## or updates from the Ubuntu security team.
              deb http://archive.ubuntu.com/ubuntu/ jaunty-backports main restricted universe multiverse
              # deb-src http://si.archive.ubuntu.com/ubuntu/ intrepid-backports main restricted universe multiverse

              ## Uncomment the following two lines to add software from Canonical's
              ## 'partner' repository. This software is not part of Ubuntu, but is
              ## offered by Canonical and the respective vendors as a service to Ubuntu
              ## users.
              # deb http://archive.canonical.com/ubuntu intrepid partner
              # deb-src http://archive.canonical.com/ubuntu intrepid partner

              deb http://archive.ubuntu.com/ubuntu/ jaunty-security main restricted
              deb-src http://archive.ubuntu.com/ubuntu/ jaunty-security main restricted
              deb http://archive.ubuntu.com/ubuntu/ jaunty-security universe
              deb-src http://archive.ubuntu.com/ubuntu/ jaunty-security universe
              deb http://archive.ubuntu.com/ubuntu/ jaunty-security multiverse
              deb-src http://archive.ubuntu.com/ubuntu/ jaunty-security multiverse
              # deb http://ppa.launchpad.net/kubuntu-experimental/ubuntu jaunty main # disabled on upgrade to jaunty
              # deb http://ppa.launchpad.net/kubuntu-members-kde4/ubuntu jaunty main # disabled on upgrade to jaunty
              deb http://download.virtualbox.org/virtualbox/debian jaunty non-free #VirtualBox
              deb http://packages.medibuntu.org/ jaunty free non-free #Medibuntu
              deb http://wine.budgetdedicated.com/apt jaunty main #Wine
              deb http://ppa.launchpad.net/chromium-daily/ppa/ubuntu jaunty main #Chrome
              deb-src http://ppa.launchpad.net/chromium-daily/ppa/ubuntu jaunty main #Chrome
              deb http://ppa.launchpad.net/kubuntu-ppa/ppa/ubuntu jaunty main
              deb http://ppa.launchpad.net/kubuntu-ppa/backports/ubuntu jaunty main
              deb http://ppa.launchpad.net/ubuntu-x-swat/x-updates/ubuntu jaunty main
              deb-src http://ppa.launchpad.net/ubuntu-x-swat/x-updates/ubuntu jaunty main
              deb http://ppa.launchpad.net/kubuntu-ppa/staging/ubuntu jaunty main
              deb http://ppa.launchpad.net/c-korn/vlc/ubuntu jaunty main
              deb-src http://ppa.launchpad.net/c-korn/vlc/ubuntu jaunty main

              Comment


                #8
                Re: Missing packages (?) after fsck

                Hi TheBlaze

                I have concerns over what remains of your Kubuntu system if: you repaired your HDD as you suggest, *multiple* programs still have issues and you cannot get apt-get to work/install any packages (is it working through which might have been corrupted?).

                I'd first backup pronto any data that you require from your existing system, just in case the HDD goes south on you again.

                There is a system rescue/repair option on the Kubuntu Live CD. I have not used it but it might allow for a reinstall of KDE. Else you can boot into another Window Manager (eg. gnome) or to a network shell, remove the KDE packages and reinstall them. Programs like Synaptic can also do a reinstall of specific packages.

                However, given all the issues with the various packages, myself I'd prefer to do a clean install.
                Else you might find that something else was broken later down the track and spend more time again trying to fix it up.

                Hope this helps

                Andy

                Comment


                  #9
                  Re: Missing packages (?) after fsck

                  Do you get any output from:
                  Code:
                  sudo dpkg --audit
                  Or can you get a list of broken packages with:
                  Code:
                  sudo dpkg -l '*' | grep -i '^iir'

                  Comment


                    #10
                    Re: Missing packages (?) after fsck

                    @asdinnie:

                    you cannot get apt-get to work/install any packages
                    That is just it: I CAN install packages. I just get errors while doing so. When I install chromium-browser I get:
                    dpkg: serious warning: files list file for package `libgnome-media0' missing, assuming package has no files currently installed.
                    dpkg: serious warning: files list file for package `cups' missing, assuming package has no files currently installed.
                    dpkg: serious warning: files list file for package `libcupsimage2' missing, assuming package has no files currently installed.
                    dpkg: serious warning: files list file for package `synaptic' missing, assuming package has no files currently installed.

                    But chromium-browser installs fine. And Synaptic IS installed and usable. The only thing visibly wrong is the gtk+ engines.
                    And also from kernel log:
                    /etc/init.d/mysql[3014] /etc/rc2.d/S19mysql: line 75: /usr/bin/mysqladmin: No such file or directory

                    Although I agree it might be better to do a clean install, it would take time, and even more time to get everything set up like I have it now...

                    @kubicle
                    There was no output from both commands.

                    Comment


                      #11
                      Re: Missing packages (?) after fsck

                      Originally posted by TheBlaze
                      dpkg: serious warning: files list file for package `libgnome-media0' missing, assuming package has no files currently installed.
                      dpkg: serious warning: files list file for package `cups' missing, assuming package has no files currently installed.
                      dpkg: serious warning: files list file for package `libcupsimage2' missing, assuming package has no files currently installed.
                      dpkg: serious warning: files list file for package `synaptic' missing, assuming package has no files currently installed.
                      Check /var/lib/dpkg/info/ for files called <package>.list (for example synaptic.list)...these might have gotten lost during the file system corruptions. Reinstalling the packages should fix these errors.

                      Of course, there might be other files lost as well...and if you have problems with other programs you should try reinstalling those as well. However, the root cause for filesystem corruption may be a failing hard disk (or simply a loose cable), so make backups of important stuff just in case and keep an eye on your hard disk (having to run fsck on every boot is not normal)

                      Comment


                        #12
                        Re: Missing packages (?) after fsck

                        @kubicle:
                        Thanks! Reinstalling the packages fixes the dpkg warnings. The only problem is there is a million of these warnings. I would have to write a script or something. Where is that mono installation...? (I work on .net).
                        Oh and the Firefox issue was a missing theme file and not a gtk engine problem... My bad.

                        Anyway, thank you for your help everybody!

                        Comment

                        Working...
                        X