0

Ubuntu 12.04 here. So, I tried to update my Kernel, which I did succeed in the end, but I did a way of updating it a bit... well, wrong. So... Ubuntu Software-Center is now not functional and when I run it's command through the command line, this is the last error line:

AttributeError: 'NoneType' object has no attribute '__contains__' Now I know that the Kernel update did this from other commands rendering out stuff like "linux-image-generic-4.1100... line in /var/etc/apt/ ? " when I was trying to fix the issue.

I don't know much about these sorts of errors/issues/broken stuff but I think I need to delete those Kernel .deb files.

Anyway, I'm used to messing stuff up like this, however thanks in advance if you have an answer!

Aha! This is a system error that I got: The package linux-image-4.11.0-041100rc5-generic needs to be reinstalled, but I can't find an archive for it. I need to uninstall that

Here is what I followed... and, uh, I guess it was unstable, I wanted to get the latest verison, but didn't know. This is it -> How to update kernel to the latest mainline version without any Distro-upgrade?

1 Answers1

0

Well, You have tried to update your kernel to the latest mainline kernel which is not a good idea (ref). But still if you need (for some reason like hardware compatibility or anything else) to do so this is the way:

In the link you shared as your workflow you have removed the the deb file related to new kernel right after installation. That is why you get the error The package linux-image-4.11.0-041100rc5-generic needs to be reinstalled, but I can't find an archive for it. Logically everything should go fine and you shouldn't get this error if the installation was done well. But it seems there has been some problem and there was a need for reinstallation.

Now, go through the same procedure and download and install the kernel but this time don't remove the deb file.

Reboot your system. If you don't get the error, now you can remove the deb file.