It is understood from the Open Source Initiative's definition of open source that the software under the licenses here and here can be used/run for any purpose. For example, it is understood that HeidiSQL is under GNU General Public License v2.0 and it can be used/run for any purpose.
However, I wonder whether "use/run for any purpose" is also valid if the software under multiple licenses. For example, let's examine Ubuntu:
Ubuntu is a collection of thousands of computer programs and documents created by a range of individuals, teams and companies. Each of these programs may come under a different licence.
Ubuntu contains licensed and copyrighted works that are not application software. For example, the default Ubuntu installation includes documentation, images, sounds, video clips and firmware.
All of the application software installed by default is free software. In addition, we install some hardware drivers that are available only in binary format, but such packages are clearly marked in the restricted component.
Is it still valid "use/run for any purpose" in this case?