LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 07-12-2013, 09:44 PM   #16
Daveb3
Member
 
Registered: Dec 2002
Location: Alaska
Distribution: debian,ubuntu,linuxmint
Posts: 91

Original Poster
Rep: Reputation: 16

i ran the commands sugg by evo2 in squeeze on my main computer that works to see if i could spot any diff. only thing i see is a lot more subdirs in locale, including the cs & ca.

still when i ran reconfigure on the broke one it complained about not being able to create some directories.
below is the output from the squeeze that doesn't have the problem:
-----------------------
newbuild2:/home/dave# cat /etc/apt/sources.list
#
# deb cdrom:[Debian GNU/Linux testing _Squeeze_ - Official Snapshot amd64 CD Binary-1 20091026-06:57]/ squeeze main

deb cdrom:[Debian GNU/Linux testing _Squeeze_ - Official Snapshot amd64 CD Binary-1 20091026-06:57]/ squeeze main

deb http://ftp.us.debian.org/debian/ squeeze main contrib non-free
deb-src http://ftp.us.debian.org/debian/ squeeze main contrib non-free

deb http://security.debian.org/ squeeze/updates main
deb-src http://security.debian.org/ squeeze/updates main



newbuild2:/home/dave# cat /etc/apt/apt.conf
cat: /etc/apt/apt.conf: No such file or directory



newbuild2:/home/dave# cat /etc/apt/preferences
cat: /etc/apt/preferences: No such file or directory



newbuild2:/home/dave# ls /usr/share/locale
af as be@latin br crh de en_AU en_NZ en_US@piglatin eu fur ha hu io ka ko locale.alias mg mn nb nn pa pt_BR si sr ta tr uz xh zh_HK
am ast bg bs cs dz en@boldquot en@quot eo fa ga he hy is kk ku lt mi mr nds nso pl ro sk sr@ije te tt uz@cyrillic yi zh_TW
ang az bn ca cy el en_CA en@shaw es fi gl hi id it km ky lv mk ms ne oc ps ru sl sr@latin th ug vi yo zu
ar be bn_IN ca@valencia da en en_GB en_US et fr gu hr ig ja kn li mai ml my nl or pt rw sq sv tk uk wa zh_CN



newbuild2:/home/dave# locale
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
------------------------------------
 
Old 07-15-2013, 05:16 AM   #17
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
Okay. I guess the the directory structure of /usr/share/locales/ is messed up. As reconfigure fails due to non existing directories I guess we better reinstall the locales package alltogether. Checking the content of the package locales through the debian package list on debian.org the directories get created by it.
Code:
apt-get --reinstall install locales
 
Old 07-15-2013, 07:32 PM   #18
Daveb3
Member
 
Registered: Dec 2002
Location: Alaska
Distribution: debian,ubuntu,linuxmint
Posts: 91

Original Poster
Rep: Reputation: 16
nope, still going in circles.

reinstall produces:
---------------------
newbuild:/home/dave# apt-get --reinstall install locales
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
e2fsprogs: PreDepends: e2fslibs (= 1.41.12-2) but 1.41.12-4stable1 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
-------------------------------

and apt-get -f is back to the unable to create dir:
-------------------
newbuild:/home/dave# apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
e2fsprogs
Suggested packages:
gpart parted e2fsck-static
The following packages will be upgraded:
e2fsprogs
1 upgraded, 0 newly installed, 0 to remove and 440 not upgraded.
Need to get 0B/818kB of archives.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]? y
Reading changelogs... Done
(Reading database ... 124385 files and directories currently installed.)
Preparing to replace e2fsprogs 1.41.12-2 (using .../e2fsprogs_1.41.12-4stable1_amd64.deb) ...
Unpacking replacement e2fsprogs ...
Replaced by files in installed package util-linux ...
dpkg: error processing /var/cache/apt/archives/e2fsprogs_1.41.12-4stable1_amd64.deb (--unpack):
unable to create `/usr/share/locale/ca/LC_MESSAGES/e2fsprogs.mo.dpkg-new' (while processing `./usr/share/locale/ca/LC_MESSAGES/e2fsprogs.mo'): No such file or directory
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Processing triggers for man-db ...
Errors were encountered while processing:
/var/cache/apt/archives/e2fsprogs_1.41.12-4stable1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
--------------------------------
im surprised the installer isnt smart enough to create the dirs if they're not there. im doing all this from a root terminal.

only thing that works is apt-get update
 
Old 07-15-2013, 08:40 PM   #19
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,
Quote:
Originally Posted by Daveb3 View Post
that didnt work.
ran reconfigure locales & selected everything. it installed somwe but also prodices errors like this for a lot of them:
I think it may be worth trying to do the opposite. Ie don't select any locales: or at least don't select any of the locales that have error messages or missing directories associated with them.

Evo2.
 
Old 07-15-2013, 10:57 PM   #20
replica9000
Senior Member
 
Registered: Jul 2006
Distribution: Debian Unstable
Posts: 1,123
Blog Entries: 2

Rep: Reputation: 259Reputation: 259Reputation: 259
What if you try this to see what would be removed.

Code:
root@siduxion:lists# apt-get -s remove e2fsprogs e2fslibs locales
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following package was automatically installed and is no longer required:
  mc-data
Use 'apt-get autoremove' to remove it.
The following packages will be REMOVED:
  btrfs-tools e2fslibs e2fsprogs locales mc testdisk
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
  e2fsprogs e2fslibs (due to e2fsprogs)
0 upgraded, 0 newly installed, 6 to remove and 89 not upgraded.
Remv btrfs-tools [0.19+20130315-2]
Remv testdisk [6.13-1]
Remv mc [3:4.8.5-1]
Remv e2fslibs [1.42.8-1] [e2fsprogs:amd64 ]
Remv e2fsprogs [1.42.8-1]
Remv locales [2.17-7]
Take note of what would be removed. If it's a few tools like in my example, then run the command again without the -s.

Then I would run:
Code:
apt-get clean
apt-get update
apt-get -f install
apt-get install e2fsprogs e2fslibs locales (and the other packages that were removed)
 
Old 07-15-2013, 11:05 PM   #21
Daveb3
Member
 
Registered: Dec 2002
Location: Alaska
Distribution: debian,ubuntu,linuxmint
Posts: 91

Original Poster
Rep: Reputation: 16
well if i just go with my default it completes with no error but also doesn't add any & apt-get -f still complains
---------------------
newbuild:/home/dave# dpkg-reconfigure locales
Generating locales (this might take a while)...
en_US.UTF-8... done
Generation complete.
newbuild:/home/dave# ls /usr/share/locale
en en_AU en@boldquot en_CA en_GB en_NZ en@quot en@shaw en_US en_US@piglatin locale.alias
--------------------------
i tried selecting a few of the ones on my other computer with the -8 but got a lot of unable to create dir.
 
Old 07-15-2013, 11:10 PM   #22
Daveb3
Member
 
Registered: Dec 2002
Location: Alaska
Distribution: debian,ubuntu,linuxmint
Posts: 91

Original Poster
Rep: Reputation: 16
heres the output from replica9000 suggestion:
-----------------------
newbuild:/home/dave# apt-get -s remove e2fsprogs e2fslibs locales
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
mc: Depends: e2fslibs (>= 1.41.0) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
-------------------
 
Old 07-16-2013, 02:11 AM   #23
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
You give the -f with all those apt-get commands. Lets force this little sucker . Or maybe go down low and use dpkg to install locales. Download the package and then install it with
Code:
dpkg -i locales-version.deb --force-depends --force-breaks --force-conflicts --force-overwrite
or maybe --force-all
Okay this is far to drastic. Guess you can first try with just install.

If going on with apt-get try to force the reinstall as well and deny dependency checks
Code:
apt-get -f -m --reinstall install locales
If still refusing use the list from here. Loop through it, use only the dirname and mkdir them.
Code:
while read LINE; do echo mkdir $(dirname $LINE); done < /tmp/dirlist
remove the echo after making sure your happy with the dirlist
 
Old 07-16-2013, 02:33 AM   #24
Daveb3
Member
 
Registered: Dec 2002
Location: Alaska
Distribution: debian,ubuntu,linuxmint
Posts: 91

Original Poster
Rep: Reputation: 16
hooray for the sledgehammer approach.

i decided to just keep doing the apt-get -f install & manually make every dir it said it couldn't make (about 10).

zhjim i think that may have been your last suggestion, or close to it. would one of your 1st two commands have forced it to make the dirs? i'm still a little dumbfounded that the installer can't just make the dirs it needs.

once i did that it completed without errors & i was able to do what i started out to do, install apt-file & moblin & canberra for login sound.

thanks to all for the help & suggestions.

Last edited by Daveb3; 07-16-2013 at 02:34 AM.
 
Old 07-16-2013, 02:55 AM   #25
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,876

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
I think you should comment out the cd's from your sources.list, clean and update your package lists and do an apt-get dist-upgrade.
Especially as your squeeze cd's are from it's testing era...

Dependency errors do not happen (on stable or older anyway - testing/sid is another story) unless you have something out of whack with your sources.list, you have been installing "foreign" packages from other branches (or distro's), or manually holding packages back.
 
Old 07-16-2013, 04:19 AM   #26
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
I would say that apt-get just got stuck with the dependencies of packages for the e2fslibs which just hold it back from doing anything. Dependencies in my opinion are the only real reason for package managers. As well as ease of command. After researching a bit more on this I did not found any option to apt-get that really ignores dependencies. Only dpkg is able to it seems dpkg --ignore-depends=package would ignore checks for this special package. I'd say with package beeing locales here it would have been installed. But honestly I'm only droping in the dark.

@descandant_command: Would you just do a apt-get dist-upgrade right away or first get apt-get upgrade to go through? As far as I recall one should first get that upgrad going to have all needed files in place before goint for that dist-upgrade. dist-upgrade does some major upgrades like libc or kernel. Also the kernel went out of it it seems.
 
  


Reply



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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
help with apt-get: dependency error (Depends: but is not going to be installed) Avatar Debian 7 08-21-2009 10:01 AM
apt-get upgrade error (stops at kernel due to "dependency issues") n0dl Debian 2 02-16-2007 06:20 PM
Apt Dependency Deadlock Quantumstate Debian 7 04-23-2006 09:33 AM
Can't install via adept/apt-get, weird dependency error... Letherian Linux - Software 0 02-26-2006 04:12 PM
Dependency error in apt-get. How to solve? kushalkoolwal Debian 2 11-28-2005 12:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 11:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration