sofariu wrote:
Hi, did you manage to make it work?, Thanks!
Assuming you have the exact same situation as the OP where you have successfully installed macOS 10.6, then you would need to download the macOS 10.11 installer from Apple and upgrade to El Capitan first since the macOS 10.11 installer is available outside of the App Store and can be downloaded by any computer or OS capable of accessing the Internet. You then transfer that downloaded .dmg file to your older Mac and extract the real installer by following the directions in the Apple article very carefully.
How to download and install macOS - Apple Support
Once you have gotten macOS 10.11 El Capitan installed, then you should be able to access the App Store in order to download later versions of macOS.
This all assumes your Mac is even compatible macOS 10.11 El Capitan and any later versions of macOS.
An even better option would be to boot into Internet Recovery Mode using Command + Option + R (Intel Macs only from Late-2009 to 2020) to attempt to access the online installer for the most recent version of macOS compatible with your particular Mac. Unfortunately, some Macs may only boot to the online installer for the older OS which originally shipped with the Mac from the factory.
For those people with access to another Mac compatible they can instead create a bootable macOS USB installer:
Create a bootable installer for macOS - Apple Support