This question already has an answer here:
I recently got a warning, that I only have 5.8MB free space in my
/boot directory. This information came with the option to 'examine or ignore it'. I examined the file and couldn't do anything, so I decided to close it.
After receiving a notification that an update was available, I clicked upgrade but it said that I didn't have space in that
/boot directory, so I looked up hundreds of websites, but couldn't find a solution.
After clicking on something by mistake on the update screen, it gave me a code to paste in terminal to clear my old updates. I closed it after copying, but it didn't paste and I could never find that code again) I've downloaded Synaptic Package Manager and it didn't help, but i really need that code.
Please help - Thanks!