LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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
 
LinkBack Search this Thread
Old 10-15-2005, 07:27 AM   #1
Ephracis
Senior Member
 
Registered: Sep 2004
Location: Sweden
Distribution: Ubuntu, Debian
Posts: 1,109

Rep: Reputation: 49
Upgrading to unstable broke udev


I was trying to change from stable to unstable yesterday. I change the apt-sources-file and replaced all "stable" with "unstable" . Then I ran
apt-get update
apt-get dist-upgrade

The last one exited with an error about udev, I have tried to run "apt-get -f install" among other things, all with the same error as before:
Code:
# apt-get install udev
Reading Package Lists... Done
Building Dependency Tree... Done
The following packages will be upgraded:
  udev
1 upgraded, 0 newly installed, 0 to remove and 201 not upgraded.
592 not fully installed or removed.
Need to get 0B/315kB of archives.
After unpacking 344kB of additional disk space will be used.
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "en_US",
        LC_ALL = (unset),
        LANG = "en_US"
    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
(Reading database ... 105082 files and directories currently installed.)
Preparing to replace udev 0.056-3 (using .../archives/udev_0.070-5_i386.deb) ...
ln: `/etc/udev/rules.d/z55_hotplug.rules': File exists
dpkg: error processing /var/cache/apt/archives/udev_0.070-5_i386.deb (--unpack):
 subprocess pre-installation script returned error exit status 1
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "en_US",
        LC_ALL = (unset),
        LANG = "en_US"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "en_US",
        LC_ALL = (unset),
        LANG = "en_US"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Errors were encountered while processing:
 /var/cache/apt/archives/udev_0.070-5_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Another question I have is how I should do if I want to change some stuff in the kernel. I have compiled kernels before but never in Debian. I downloaded the kernel-image for 2.6.8 among with the source and the headers. Now uname -r gives me "2.6.8-2-686".
But I figured that I have to enable SCSI support plus some other stuff in order to get my external HDD to work. So my second questions is: can I just do a 'normal' make menuconf and then make && make modules_install and the new modules should work? Or is there something special about Debian (remember the hard work of getting the first 2.6-kernel to work).

Regards.
 
Old 10-15-2005, 07:38 AM   #2
Ephracis
Senior Member
 
Registered: Sep 2004
Location: Sweden
Distribution: Ubuntu, Debian
Posts: 1,109

Original Poster
Rep: Reputation: 49
I figured that the udev-problem had something to do with locales so I will add some info about it here if someone would need it:
Code:
# locale
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
LANG=en_US
LC_CTYPE="en_US"
LC_NUMERIC="en_US"
LC_TIME="en_US"
LC_COLLATE="en_US"
LC_MONETARY="en_US"
LC_MESSAGES="en_US"
LC_PAPER="en_US"
LC_NAME="en_US"
LC_ADDRESS="en_US"
LC_TELEPHONE="en_US"
LC_MEASUREMENT="en_US"
LC_IDENTIFICATION="en_US"
LC_ALL=
 
Old 10-15-2005, 08:47 AM   #3
Ephracis
Senior Member
 
Registered: Sep 2004
Location: Sweden
Distribution: Ubuntu, Debian
Posts: 1,109

Original Poster
Rep: Reputation: 49
Some more updates...

I got rid of the locale-problem by running locale-gen, but that didn't solve the problem with udev. I moved and backuped all files in /etc/udev/rules.d/ (because of the "File exists"-message) and after that it worked out fine.
The kernel-problem will hopefully be solved with the sticky I just noticed on the forum.

Regards.
 
Old 10-16-2005, 07:48 AM   #4
lpd
Member
 
Registered: Nov 2004
Distribution: Debian Unstable
Posts: 77

Rep: Reputation: 15
When I get hit by a problem like that I normally force the install by "dpkg -i --force-overwrites /var/cache/apt/archives/packagename.deb" unless it's trying to overwrite a file that I know are customized for my machine.
Do a 'reportbug udev' if you've email up and running. The devs are probably intested in any bugreports from dist-upgrade since that's something they rarely do at their own machines. Being able to dist-upgrade to unstable are vital since there aren't any (official) install images for debian unstable.
 
Old 10-16-2005, 09:28 AM   #5
yanik
Member
 
Registered: Oct 2003
Location: Montreal Beach
Distribution: Debian Unstable
Posts: 368

Rep: Reputation: 30
are you running kernel 2.6.12? You need to upgrade to 2.6.12 before upgrading udev.
 
Old 10-17-2005, 04:28 AM   #6
Ephracis
Senior Member
 
Registered: Sep 2004
Location: Sweden
Distribution: Ubuntu, Debian
Posts: 1,109

Original Poster
Rep: Reputation: 49
lpd, thanks for that information. I do not have email up and running and currently that machine is broken (I think the cooling is broken since the machine can't run for too long before it just shuts down). I will probably do a dist-upgrade again since I tend to reinstall a lot on that machine and if the problem is still there next time I will make sure to report the problem to the devs.

yanik, no the only kernel-image for 2.6 I saw in the list was the 2.6.8-kernel. Although as you see in my previous posts it works and runs, so I am not sure what you mean when you say that I need to have 2.6.12 or higher, since it seems to be running fine now.

Regards.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Upgrading to 2.6 Kernel, ALSA, Udev Kenji Miyamoto Slackware 8 08-27-2005 05:24 PM
Kernel Upgrading, dev, udev, etc... Makaelin Slackware 2 02-11-2005 05:58 PM
X Server broke while upgrading nny0000 Slackware 1 08-08-2004 04:05 PM
upgrading to linux 2.6.5 with hotplugging and udev behmjose Linux From Scratch 6 05-05-2004 06:22 PM
debian unstable upgrade broke mozilla misterflibble Linux - Software 9 03-12-2004 12:15 PM


All times are GMT -5. The time now is 05:00 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration