<t>Had the same problem. I'm thinking this might be a bug, in that it's having issues with APT sources specified in the Deb822-style format which uses multiple lines, e.g.:<br/>
<br/>
deb https://packages.microsoft.com/repos/azure-cli<br/>
<br/>
Types: deb<br/>
<br/>
URIs: https://packages.microsoft.com/repos/azure-cli/<br/>
<br/>
Suites: jammy<br/>
<br/>
Components: main<br/>
<br/>
Architectures: amd64<br/>
<br/>
Signed-by: /etc/apt/keyrings/microsoft.gpg<br/>
<br/>
<br/>
<br/>
... as opposed to the older one line style, e.g:<br/>
<br/>
deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-jammy-prod jammy main <br/>
<br/>
<br/>
Specifically, it's choking on the Types: deb part in the Deb822 format, as evident in your error message above 'Type 'Types:' is not known on line 56 in source list'<br/>
<br/>
<br/>
If you check in your /etc/apt/sources.list.d directory (as sudo) you'll see the extra sources that have been added there. Check each one to look for one in the Deb822 format, that's probably your issue, it might well be Azure CLI too. <br/>
<br/>
My 'temporary' fix was to comment out all the lines in my azure-cli.sources file so it wouldn't be used in the aggregated source list, Azure Update Manager was happy after that.<br/>
<br/>
<br/>
Let me know if you find the same thing and I'll try and let the product team know. Don't think it's an Ubuntu-specific issue as such.</t>