Re: Apt no longer works...
britesc; Hi !
Agree, looks like a space constraint situation.
The following command is useful for finding out which directories are using all your space...
Code:
du -h --max-depth=1 | sort -hr
If it is the boot partition that is full, I recommend sysnaptic to remove older kernels and related files:
(synaptic is no longer installed by default)
The command uname -a in a terminal will tell you which kernel you are running - you keep it and as well as one other (for fall back reasons)....then:
Go to Synaptic Package Manager select status on the left-lower pane and select installed on the left-upper pane and search for linux-image.
select the ones you want deleted. listed in the right-upperpane.
and mark for complete removal.
Click the Apply button in the toolbar and then Apply in the summary window that pops up. Close Synaptic Package Manager.
When done remember to update grub !
In addition to linux-image, also remove old versions of linux-headers and linux-restricted-modules (if you have them).
this works for me, hope it helps you too
Re: Apt no longer works...
Hi Bashing-om,
Many thanks for the reply. Slight difficulty (isn't there always), it's a server with no gui.
Regards,
jB :cool:
Re: Apt no longer works...
britesc; Regret the delay getting back to ya, bust forum.
Not having the GUI requires a detour in finding and removing the older kernels and headers. I have always used "synaptic" for the ease of use. The same thing can be done from the command line. I have seen the method. If needed I will hunt the procedure up.
But first tell me that the du code shows /boot as at capacity and will proceed on.
just try'n to help
Re: Apt no longer works...
Hi,
Solved. Yes it was to do with limited space.
I first off installed the reduced desktop, synaptic via ssh.
Logged in and found synaptic.
Followed your advice.'
Then via ssh rebuilt grub and voila I am back down to 53m so plenty of space and performance increase.
I will keep an eye on this now.
If I can do similar via webmin I will remove the desktop as it is veeeerrrrrrry slow.
Thanks and kind regards, another happy bunny,
jB :cool: No I am not cool just disabled and partially sighted.
Re: Apt no longer works...
The following console command will remove all kernels, but the latest:
Code:
sudo apt-get purge linux-image-{[0-9],`uname -r`+}
If you want to retain two last kernels (the latest and the previous one), modify it as
Code:
sudo apt-get purge linux-image-{[0-9],`uname -r`+,`readlink /vmlinuz.old|cut -d- -f2-`+}
It will work so long as you have at least two kernels installed. You can see what an apt-get command is trying to do by adding the -s option like this:
Code:
apt-get -s purge linux-image-{[0-9],`uname -r`+}
Re: Apt no longer works...
Thank you.
This is why linux is great. 75 ways at least to do something. All of them correct.
Kind regards,
jB :cool:
Re: Apt no longer works...
britesc; Pleased you are up and running.
I had hunted up schragge's instructions in another thread.
As you are good to go; please mark this thread as solved. That aids us and others seeking solutions.
Quote:
Go to the first post in your thread. Click on "Edit Post". Now click on the orange "Go Advanced" button. In the advanced editor change the prefix to "SOLVED". Now click on the orange "Save Changes" button.
Problem still ? -> graphical instruction:https://wiki.ubuntu.com/UnansweredPo.../SolvedThreads
Happy ubuntu'n