Ubuntu Installation :: Removed The Kernel Packages - How To Re-install Them
Apr 26, 2011
I removed the linux-image-2.6.32-31-generic package (and all the older ones) from my 64-bit Lucid Lynx machine. When I boot up, the grub menu only has memtest as a choice.
I am able to boot the machine with the LiveCD and can mount the drive. (look like it's read only mode right now.) But now, how do I reinstall the linux-image-2.6.32-31-generic package(or any package for that matter) onto the disk partition that represents the machine?
As a follow-on to something Telemachos said in another post:
Quote:
Originally Posted by Telemachos
You can see what kernels you have installed - to check if you have a virtual kernel and to clean up - by running this command:
Code:
If you've been installing kernel-headers along with the kernels (say to build modules for graphics or wireless), you should remove those when you remove the corresponding kernel. The command to search for those is parallel:
Code:
I would have thought that removing a given kernel package would trigger the removal of the older kernel headers. Can someone confirm that is, or is not, the behavior? I ask this because it seemed to me that the older kernel header packages were indeed removed when I removed some older kernel packages.
For example, the linux kernels I have installed are:
Code:
Also, the linux-headers packages I have installed are:
Code:
So, when I get around to removing the linux-image-2.6.25-2-amd64 package like this:
Code:
I would expect apt-get to automatically also remove linux-headers-2.6.25-2-amd64 and linux-headers-2.6.25-2-common. Is that what will happen, or do I need to explicitly state all three packages on the apt-get remove command?
Whenever I do sudo apt-get or use the Ubuntu Software Center, I can't download anything because a message comes up saying "Action requires installation of untrusted packages: The action would require the installation of packages from not authenticated sources." I've been trying to download GIMP and Thunderbird, so... I dunno what the problem is.
OS: RHEL / CentOS If I use "yum" to add / erase packages, OS will log the info to file /var/log/yum.log.
But if use "rpm -e" to remove a package, there is no related log file to show which rpm package got earsed. I have to run "rpm -qa > /tmp/$TIME", and then diff the /tmp/$TIME file to get the difference.
Is there is command to show the erased packages (erased by using rpm -e)?
I've just joined this LQ forum as I couldn't find my answer on the web.
I am trying to find if there is a way to check/find out what packages were removed. In other words, I am looking for the history of packages that were ever removed.
I already know how to find what packages were installed using <rpm -qa> command, but it doesn't tell what has been REMOVED.
For example, how do I know if the <gcc> package was ever installed before, and when it was removed?
Is there any way to find out what packages were removed by the last 'sudo apt-get autoremove' command? Is that info in a log somewhere? I am setting up a recently installed minimal install and my last autoremove seemed to remove some dependencies which has in turn killed my network connections, wired and wireless.
KDE 4.3 squeeze-SID I've got a strange problem with my last "aptitude safe-upgrade". It had removed all my kde 4.3 and packages I have installed, I don't know why!
This is what aptitude removed : $ dpkg -l | grep ^rc |awk '{print $2}' | xargs echo .....
I reinstalled kde-full (kde 4) but now with an aptitude safe-upgrade or dist-upgrade. It wants to remove my debian-multimedia keyrings and my wine-unstable and others each time.
# aptitude -s safe-upgrade Les NOUVEAUX paquets suivants vont etre installs : <<<<<<<<< #new packages will be installed libparted0debian1{a} libva1{a} libx264-92{a} libxklavier16{a} mysql-server-core-5.1{a} Les paquets suivants seront ENLEVES : <<<<<<<< # packages will be remove .....
In previous versions, there was an 'advanced' button where you could select NOT to install grub. I can't find that in the latest Natty release iso's. Is it no longer an option? And if not, WHY? I find myself reloading Natty quite often on a test partition to play with various parameters in my attempt to get it working as needed. But I'd really prefer to have the option to no reload grub.
I am installing to an empty hard drive (that for some reason is shown as /dev/sde - I don't know if it is related, but seems weird - why is it not sda, and moreover, not hda - it is an ide drive), and install goes through fine, but in the end it says "no kernel packages were installed, your grub configuration will not be changed", and the only option is to reboot. After rebooting, I get thrown into grub command prompt, and have no idea what to do there.
I've been reading up on ssh and I don't want anyone to connect to my computer. I am not interested in remote connectivity at all. Should I uninstall ssh? I ran Code: apt-get remove ssh and debian returned "package ssh is not installed. 0 packages removed."
I also looked online and found out about /etc/ssh/ssh_conf but all of the lines on my computer were #'d out. I also added "PermitRootLogin no" at the end. Am I safe from ssh attacks if I don't have ssh? Might be a stupid question but I don't want to fall victim. edit: it seems as though I -do- have openssh-client and openssh-server installed. Should I just leave my ssh config with PermitRootLogin no or apt-get remove openssh-client openssh-server.
I tried to install some packages using "apt-get" but every time I try to install one it throws "Aborted" message, I tried several packages and combination allways with the same result.
But If I install them with Synaptics I can do it without any problem, as I know Synaptics uses apt-get to install packages so all this is a bit confusing to me .
apt-get version:
apt 0.7.25.3ubuntu9 per a i386 compiled on May 14 2010 15:33:48 I'm using Ubuntu 10.04 Lucid Lynx
I did a succesfull Alternative Installation of 10.04 yesterday and managed to load the packages that allowed me to install NetGear NG511v2 drivers. So far so good.
When I plug in a usb flashdrive it only mounts during boot-up. I know I can load a package that allows me to select ' hot mount usb drive' (or similar check box). How do I find what packages to install to give me this functionality?
Similarly my accessories tab shows Bluetooth as being available. There is no bluetooth on the laptop so how do I find out what packages I can safely remove?
The wider question is, is there a list of packages with their associated functions and associations?
I've already had a look at the lists of installed packages and available packages on my CD, but I have no idea what they do.
I would like to do a fresh install of Ubuntu 10.10 on my Ubuntu 10.04 machine.Living in South Africa where we pay per MB, the 700MB live cd will use my data cap up for the month. I have a few other applications/programs installed (like vlc, skype, remastersys...) that are not part of the normal distribution. Is there a way whereby I can extract these applications to install again without having to download them of the internet? Also to get my added repositries, codecs,
Fedora 11 update released today creates a dependency issue in my x86-64 system: Processing Dependency: kernel-uname-r = 2.6.29.5-191.fc11.x86_64 for package: kmod-wl-2.6.29.5-191.fc11.x86_64-5.10.91.9-3.fc11.1.x86_64 # yum info kernel-uname-r produces "no matching packages to list" the yum info pack tells me kmod-wl is: Metapackage which tracks in wl kernel module for newest kernel so it seems important to have it up to date. What should I do?
In /var/log/warn I can see :Code:Jul 18 19:29:41 Linux1 SuSEfirewall2: Warning: config 'vsftpd' not available I did install vsftpd, but I removed it and install pure-ftpd instead.
Running: ASUS Laptop X71SL series GeForce 9300M GS 512 MB Ubuntu Karmic
I can't install packages via the terminal. For example: sudo apt-get install compizconfig-settings-manager
Doesnt work. It gives me: Lser paketlistor... Frdig Bygger beroendetrd Lser tillstndsinformation... Frdig E: Kunde inte hitta paketet compizconfig-settings-manager
Swedish there hehe, but basically it says the it couldnt find the the package named "compizconfig-sett.This problems occurs in several situations. Every single package i try except "upgrade" fails to find a package.
Also, the package manager "Ubuntu Software Manager" and Synaptic arent giving me any solutions. Same problems. Packages arent available and such. I have a working internet connection and the GPU drivers are installed. Everything is updated. sudo apt-get install update/upgrade is done and also done in the general update manager.
I have a general question: can I install packages in my Ubuntu, just using the live-CD but no network connection?
I broke my Ubuntu(9.10) and now can not log in, so I want to reinstall gnome, unfortunately I could not connect to internet, so I wonder if there is a way to use the live-CD as a source for the new software.
I would be really happy if I don't have to preinstall the whole system.
while upgrading packages in my ubuntu 10.4 i m receiving following exception
Code:
Failed to fetch http://za.archive.ubuntu.com/ubuntu/dists/lucid/Release.gpg Could not connect to za.archive.ubuntu.com:80 (155.232.191.229). - connect (113: No route to host) Failed to fetch http://za.archive.ubuntu.com/ubuntu/dists/lucid/main/i18n/Translation-en_GB.bz2 Unable to connect to za.archive.ubuntu.com:http:
I was trying to install git the other day and I system shutdown because of a power cut. Later, when i tried installing git, I get the following error message. In fact, I am not able to install any .deb packages. I get the same error when I try installing them
Code: dineshsriram@dineshsriram-desktop:~$ sudo apt-get install git Reading package lists... Done Building dependency tree Reading state information... Done
I decided to give a new download of Ubuntu 10.10 a chance. It went on fine,I even installed VirtualBox with noi problem, But I am light on assessories,particularly gimp. I tried the Ubuntu Software Center, then I tried the Synaptic Package Manager for this and other packages, and guess what? I kept getting errors like this:dpkg: failed to read on buffer copy for copy info file `/var/lib/dpkg/available': Input/output error E: Sub-process /usr/bin/dpkg returned an error code (2)I even found a link that showed how to include gimp on 10.04 or 10.10 with a few command line statement, and I thought that would fly, but I got the same error again. Another problem is that my monitor keeps fading to a sort of blue-gray color indicating the processor is having trouble keeping up, but I have only FireFox running, and the keyboard locks up after after just a a smaill handful of charactrers are typed, then after about 10 seconds or so, the keyboard buffer flushes to the screen.
This certainly is not typical of earlier Ubuntu versions, and I wonder if anybody else has similar problems or knows the cause and cure.I am down to the point of asking myself, what is so urgent with the Ubuntu developers that we are having more and more conflicts between hardware and software to resolve with each new release? And that they are pulling more and more packages out of the LiveCD in order to make room for something that is bulking up in some other manner? What are you people up to, make Ubuntu more like Windows with coming releases? If I wanted Windows, I would stick with or get a newer version of Windows.
I've been having trouble with CUPS.I uninstalled it and I wanted to re-install it. When I removed CUPS some other files were removed too. I don't have an option of installing the software or updating a system, in the Control Center.
when I try to install anything using the Ubuntu software centre, I get the following message Requires installation of untrusted packages The action would require the installation of packages from not authenticated sources.