LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   Why this error when trying to do a yum update? (https://www.linuxquestions.org/questions/fedora-35/why-this-error-when-trying-to-do-a-yum-update-501900/)

oldjoe 11-15-2006 12:56 PM

Why this error when trying to do a yum update?
 
I am running FC6 version 2.6.18-1.2849 and when I do a yum update this is the error I get.

Transaction Check Error: package kernel-2.6.18-1.2849.fc6 is already installed
file /boot/System.map-2.6.18-1.2849.fc6 from install of kernel-2.6.18-1.2849.fc6 conflicts with file from package kernel-2.6.18-1.2849.fc6
file /boot/config-2.6.18-1.2849.fc6 from install of kernel-2.6.18-1.2849.fc6 conflicts with file from package kernel-2.6.18-1.2849.fc6
file /boot/symvers-2.6.18-1.2849.fc6.gz from install of kernel-2.6.18-1.2849.fc6 conflicts with file from package kernel-2.6.18-1.2849.fc6
file /boot/vmlinuz-2.6.18-1.2849.fc6 from install of kernel-2.6.18-1.2849.fc6 conflicts with file from package kernel-2.6.18-1.2849.fc6

What should I do?

PatrickNew 11-15-2006 12:59 PM

well, acording to this error output, you already have what you want. Did you type something like "yum install kernel" instead of "yum update kernel"? This could have created that error. But it seems that you have the most up to date kernel.

poweredbydodge 11-16-2006 09:21 AM

i agree with the above answer.

oldjoe 11-16-2006 10:15 AM

Thank you both for the reply. I am a newbie so bare with me.

I just typed in:
yum update

I thought that was the same thing as the software update available in Applications>System Tools>Software Update. When the computer lets me know that there are software updates available, I install the updates, but I get this same error either way. Its confusing because the computer tells me that there are updates available, and when I choose to install this updates, it gives me an error.

PatrickNew 11-16-2006 11:10 AM

Is your computer missing some functionality? Personally, I don't update just because there are updates. I update when I see a need to. I'd just consider if it's worth the hassle. If it works as is - I'd leave it.

P.S. Just typing "yum updat" tries to update every single package installed on your computer, which can take a very long time, and it might be that complexity which causes this error. Try "yum update <name of package>" to update just the package that needs updating.

oldjoe 11-16-2006 05:45 PM

trouble with ndiswrapper
 
Well, the reason why I wanted to update everything was because I am having problems with ndiswrapper. To make a long story short, I installed FC6 and started learning about linux. It took me hours of reading but I got my D-Link DWL-G120 wireless adapter working with ndiswrapper. I was having trouble with video playback and did something that set me back quite a bit. I put the FC6 installation cds back in and try to do a update install and it messed some things up. Now, I have my video playback working, xine working, vlc working but no wireless adapter. When I boot up it says the ndiswrapper device eth1 (eth1 is the name for my adapter when I configured it) does not seem to be plugged in. So I went back to my ndiswrapper instructions and wanted to load the module (because I don't know how to fix the problem). In the terminal, when I type the code:
depmod -a

I get this error:
WARNING: Can't read module /lib/modules/2.6.18-1.2849.fc6/weak-updates/nvidia/nvidia.ko: No such file or directory

Now I am stuck. This is where I figured I should do a yum update. Can you help me with this problem? Thanks for your help so far too.

poweredbydodge 11-17-2006 10:08 AM

hmm...

you're making me think on this one. :)

i may be wrong on this, but i do believe that ndiswrapper has to be compiled for your kernel.

-- what i'm trying to say is that, if you updated your kernel (because you had audio/video issues) after you installed ndiswrapper and got the wireless working, then the new kernel is what is preventing you from getting the wireless working. wireless --> talks to --> ndiswrapper module --> talks to --> kernel. change the kernel, change the chain of 'command' (for lack of a better term).

i do not have any ideas on why the audio/video would have a relation to the wireless (specifically why mods to the audio/video hardware/software affected the wireless driver).

oldjoe 11-17-2006 02:46 PM

tryin to reinstall
 
Ok. So, I am trying to reinstall and compile ndiswrapper. I have removed the previous ndiswrapper with a make uninstall. I have downloaded ndiswrapper-1.2.8 and extracted the files. I did a make distclean and it worked. Then I go to do a 'make' and this is the error I get:

make -C driver
make[1]: Entering directory `/root/ndiswrapper-1.28/driver'
Can't find kernel build files in /lib/modules/2.6.18-1.2849.fc6/build;
give the path to kernel build directory with
KBUILD=<path> argument to make
make[1]: *** [prereq_check] Error 1
make[1]: Leaving directory `/root/ndiswrapper-1.28/driver'
make: *** [all] Error 2

I am obviously missing something, but what and how do I get it?

PatrickNew 11-17-2006 03:01 PM

Go to a terminal and, as root, type

yum update kernel-devel

what you are missing is the source for your headers. This should fetch it and install it for you.

oldjoe 11-17-2006 03:57 PM

when i type in yum update kernel-devel this is what i get:

Loading "installonlyn" plugin
Setting up Update Process
Setting up repositories
livna 100% |=========================| 1.1 kB 00:00
vlc-contrib 100% |=========================| 951 B 00:00
core 100% |=========================| 1.1 kB 00:00
vlc 100% |=========================| 951 B 00:00
updates 100% |=========================| 1.2 kB 00:00
freshrpms 100% |=========================| 1.1 kB 00:00
vlc-source 100% |=========================| 951 B 00:00
vic-devel 100% |=========================| 951 B 00:00
extras 100% |=========================| 1.1 kB 00:00
Reading repository metadata in from local files
Excluding Packages from Livna for Fedora Core 6 - i386 - Base
Finished
Could not find update match for kernel-devel
No Packages marked for Update/Obsoletion

I'm clueless again. I appreciate you hanging with me for this.

gruntwerk 11-17-2006 08:40 PM

using livna AND freshrpms repos at the same time is not a good thing last I knew
try disabling one of those repositories and see if it works then

oldjoe 11-17-2006 09:25 PM

this might be a dumb question but, how do I do that? I'm at work right now and I can't play around to figure it out.

gruntwerk 11-17-2006 10:24 PM

there are no dumb questions, only misguided answers.....

in /etc/yum.repos.d
there is a file called livna.repo
and one called freshrpms.repo

in each of them is a line that says enabled=1
changed enabled to 0 in one of them

oldjoe 11-17-2006 10:46 PM

thanks gruntwerk, i will try that as soon as i get home.

PatrickNew 11-17-2006 11:35 PM

if the ndiswrapper is the only problem, try making it with this command:

make KBUILD=/usr/src/kernels/$(uname -r)


All times are GMT -5. The time now is 04:19 PM.