• if error code (1) on apt-get upgrade ref_1
      sudo dpkg --configure -a
    

ref

  • :1: https://itsfoss.com/dpkg-returned-an-error-code-1/