raspberrypi-ua-netinst
raspberrypi-ua-netinst copied to clipboard
Update apt cache after installation
After a fresh install of the system, I cannot install a package, I always get an error:
# apt install vim
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package vim is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'vim' has no installation candidate
After a system apt update, all goes well.
# apt install vim
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libgpm2 vim-runtime
Suggested packages:
gpm ctags vim-doc vim-scripts
The following NEW packages will be installed:
libgpm2 vim vim-runtime
0 upgraded, 3 newly installed, 0 to remove and 5 not upgraded.
Need to get 6231 kB of archives.
After this operation, 30.2 MB of additional disk space will be used.
Do you want to continue? [Y/n]
[...]
As the installer require a network connection, why not update the apt cache at the end of the install? debian-pi/raspbian-ua-netinst was working this way.