You can back up the available
file and then empty it (leave it there, but empty).
apt-get
doesn't need the file at all, dpkg
sometimes uses it for reference, but it's not essential and it will populate it again after some time.
Another option would be to delete the problematic jarnal
entry from the available
file manually.
Apt manager always install a software by reading source file which contains list of packages,there dependency. These list file are updated when you run the update program (basically whenever you run the command sudo apt-get update
)
After a Ubuntu re installation those source files aren't updated.So you can update them using sudo apt-get update
(Add PPAs if 3rd party software were used) and try with apt-get install
method but wait, you may see that many files are being re downloaded (not all).
It is because those packages are updated with your previous installation of the software and now. Anyway in this case you have to download only the updated files. If the file hasn't updated it will take from your backup.You can see the required download size while installing.
Preferable Method
You can use apton-cd
to create backup of apt-files (I don't know whether it will work in current situation, surely you can use it for future), mount the iso after re installation. Add the media as a source and install software.Lot of tutorial available in web.
Manual Method
Another thing you can do is to install using dpkg
. Go to the folder of apt backup, run dpkg -i name_of_deb.deb
. But in this way dependency won't be installed automatically. You have to install each dependent package individually. Other wise installation will fail. For example: to install vlc you have to install the libraries first and finding out the dependent library is not an easy task.
Note: I have told what I understand about installation in Ubuntu. Don't know whether any other method exists.
Best Answer
I think it's safe to remove the archives files. So if you want to free up disk space this are my recommendations:
To delete downloaded packages (.deb) already installed (and no longer needed)
To remove all stored archives in your cache for packages that can not be downloaded anymore (thus packages that are no longer in the repository or that have a newer version in the repository).
To remove unnecessary packages (After uninstalling an app there could be packages you don't need anymore).
To delete old kernel versions
If you don't know which kernel version to remove
Source: Limpiando Ubuntu: comandos y programas (actualizaciĆ³n) & How do I free up disk space?