About this question
One of the easy ways to install a program in Ubuntu Linux is to type a command in the terminal, but how do I know that the program is coming from a trusted source and not from somewhere dangerous? Can a hacker do something to redirect the command to get the software from a fake site? I visited the Ubuntu site to understand more about this command - The sudo apt-get update command is used to download package information from all configured sources. The sources are often defined in /etc/apt/sources. ... So when you run the update command, it downloads the package information from the Internet. It is useful to get info on an updated version of packages or their dependencies.