I faced the same problem with my iPad getting stuck during the iOS 18 Beta 2 update. After trying many solutions like restarting, using Restore mode, and even DFU mode, none of them worked for me, and I kept getting error 2006.
But I found a solution that finally worked! I wrote a detailed step-by-step guide on how I fixed it by manually restoring the iPad using an IPSW file. You can check out the guide here: How I Fixed My iPad Stuck During iOS 18 Beta 2 Update
https://medium.com/@mihiratmail/how-i-fixed-my-ipad-stuck-during-ios-18-beta-2-update-a-step-by-step-guide-2b85e7938cc4
Hopefully, this helps anyone who's stuck like I was!
Topic:
Developer Tools & Services
SubTopic:
Apple Developer Program