Like others have said. If you know what you are doing or just want to install "curl" to check your outbound ip address or something. Here you go, these commands worked for me:

Sudo mount -o remount,rw/

Sudo rm -f /var/lib/dpkg/lock

Sudo dpkg --configure -a

Reboot

Sourced from the Nexus 6P help thread here: https://forums.ubports.com/topic/6512/nexus-6p-sucess?_=1719225688591