Find the answer to your Linux question:
Results 1 to 4 of 4
I just installed debian on a computer yesterday. Today I tried installing it on another computer. I'm at the step where I configure apt, then install packages. I chose the ...
  1. #1
    Linux User
    Join Date
    Jul 2004
    Posts
    256

    install CD has broken packages?

    I just installed debian on a computer yesterday. Today I tried installing it on another computer. I'm at the step where I configure apt, then install packages. I chose the 'desktop' choice of pre-selected packages.

    It takes a while downloading and updating like it did before, but when it gets to the end, it says there was an error with installing the packages, but doesn't give a clue to what the problem is. It says you could try again, or continue for now. (There was an error, but it switches to the menu so fast, and then you can't see the error/install log anymore switching screens alt+fnum)

    I tried installing again, but it didn't work, I would get the same error. So I ignored it for now, and finished installing, and it appears that it's working so far, but something must be wrong/missing that I haven't ran into so far.

    What command can I use to have it test or update any broken packages that didn't work?
    --monkey

  2. #2
    Just Joined!
    Join Date
    Mar 2005
    Posts
    4

    be amused if this is too simple/already done

    Quote Originally Posted by monkey8
    I just installed debian on a computer yesterday. Today I tried installing it on another computer. I'm at the step where I configure apt, then install packages. I chose the 'desktop' choice of pre-selected packages.

    It takes a while downloading and updating like it did before, but when it gets to the end, it says there was an error with installing the packages, but doesn't give a clue to what the problem is. It says you could try again, or continue for now. (There was an error, but it switches to the menu so fast, and then you can't see the error/install log anymore switching screens alt+fnum)

    I tried installing again, but it didn't work, I would get the same error. So I ignored it for now, and finished installing, and it appears that it's working so far, but something must be wrong/missing that I haven't ran into so far.

    What command can I use to have it test or update any broken packages that didn't work?




    Have you tried apt-get install -f ?
    what response do you get form apt-get update?

  3. #3
    Linux User
    Join Date
    Jul 2004
    Posts
    256
    Here's the results if I try both of those commands. I think the error I couldn't quite catch on the cd is the error that # apt-get install -f gives.

    # apt-get update (Looked like it wanted to be ran again, so I ran it twice)
    Code:
    monkey:~# apt-get update
    Hit ftp://ftp.us.debian.org stable/main Packages
    Hit ftp://ftp.us.debian.org stable/main Release
    Hit ftp://ftp.us.debian.org stable/main Sources
    Hit ftp://ftp.us.debian.org stable/main Release
    Hit ftp://ftp.us.debian.org stable/main Packages
    Hit ftp://ftp.us.debian.org stable/main Release
    Hit ftp://ftp.uwsg.indiana.edu stable/main Packages
    Hit ftp://ftp.us.debian.org stable/main Sources
    Get:1 http://security.debian.org stable/updates/main Packages [227kB]
    Hit ftp://ftp.us.debian.org stable/main Release
    Hit ftp://ftp.uwsg.indiana.edu stable/main Release
    Hit ftp://ftp.uwsg.indiana.edu stable/main Sources
    Hit ftp://ftp.uwsg.indiana.edu stable/main Release
    Get:2 http://security.debian.org stable/updates/main Release [110B]
    Fetched 227kB in 1s (164kB/s)
    Reading Package Lists... Done
    W: Duplicate sources.list entry ftp://ftp.us.debian.org stable/main Packages (/var/lib/apt/lists/ftp.us.debian.org_debian_dists_stable_main_binary-i386_Packages)
    W: You may want to run apt-get update to correct these problems
    monkey:~# apt-get update
    Hit http://security.debian.org stable/updates/main Packages
    Hit http://security.debian.org stable/updates/main Release
    Hit ftp://ftp.uwsg.indiana.edu stable/main Packages
    Hit ftp://ftp.uwsg.indiana.edu stable/main Release
    Hit ftp://ftp.uwsg.indiana.edu stable/main Sources
    Hit ftp://ftp.uwsg.indiana.edu stable/main Release
    Hit ftp://ftp.us.debian.org stable/main Packages
    Hit ftp://ftp.us.debian.org stable/main Release
    Hit ftp://ftp.us.debian.org stable/main Sources
    Hit ftp://ftp.us.debian.org stable/main Release
    Hit ftp://ftp.us.debian.org stable/main Packages
    Hit ftp://ftp.us.debian.org stable/main Release
    Hit ftp://ftp.us.debian.org stable/main Sources
    Hit ftp://ftp.us.debian.org stable/main Release
    Reading Package Lists... Done
    monkey:~#
    # apt-get install -f (Locals isn't set right? I chose one in the installer, "en" english)
    Code:
    monkey:~# apt-get install -f
    Reading Package Lists... Done
    Building Dependency Tree... Done
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    1 not fully installed or removed.
    Need to get 0B of archives.
    After unpacking 0B of additional disk space will be used.
    perl: warning: Setting locale failed.
    perl: warning: Please check that your locale settings:
            LANGUAGE = "en_US:en_GB:en",
            LC_ALL = (unset),
            LANG = "en"
        are supported and installed on your system.
    perl: warning: Falling back to the standard locale ("C").
    locale: Cannot set LC_CTYPE to default locale: No such file or directory
    locale: Cannot set LC_MESSAGES to default locale: No such file or directory
    locale: Cannot set LC_ALL to default locale: No such file or directory
    Setting up locales (2.3.2.ds1-22sarge3) ...
    perl: warning: Setting locale failed.
    perl: warning: Please check that your locale settings:
            LANGUAGE = "en_US:en_GB:en",
            LC_ALL = (unset),
            LANG = "en"
        are supported and installed on your system.
    perl: warning: Falling back to the standard locale ("C").
    locale: Cannot set LC_CTYPE to default locale: No such file or directory
    locale: Cannot set LC_MESSAGES to default locale: No such file or directory
    locale: Cannot set LC_ALL to default locale: No such file or directory
    Generating locales...
      en.ISO-8859-1...cannot open locale definition file `en': No such file or directory
    dpkg: error processing locales (--configure):
     subprocess post-installation script returned error exit status 4
    Errors were encountered while processing:
     locales
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    monkey:~#
    --monkey

  4. #4
    Just Joined!
    Join Date
    Mar 2005
    Posts
    4

    not sure but...

    It almost looks like the locale isnt set..... have your tried to set it up again with "dpkg-reconfigure locales"? If not try it then the "apt-get install -f " again after you do.
    If i recall there was a bug some time ago; so if your using an older version of locale you may wish to upgrade it first ("apt-get upgrade locale") then go over the above once more.
    I kind of assume you have tried some of this already, and there is the possibility I am way off=0j.

Posting Permissions

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