thank you for sharing your question with the Wefugees Community!
If you are still within the time frame for a Dublin deportation, you won´t receive a work permission in general. If Germany will miss the time frame for your deportation (6 months after negative decision, max. 18 months if you are in hiding) it will have to process your asylum claim here in Germany. Then it is possible for you after some waiting time to start working or start a professional training.
Since this is just a general information, you might wanna check in with a counselling office/centre close to you - maybe they have another idea: https://adressen.asyl.net/language/en/welcome-to-informationnetwork-asylum-and-migration/
All the best
Note: Please keep in mind that we can´t provide qualified legal advice via the internet and that any information given can´t replace such legal advice.