[Linux] 升級unifi的相關錯誤

遇見的錯誤

E: Repository ‘http://dl.ubnt.com/unifi/debian stable InRelease’ changed its ‘Codename’ value from ‘unifi-5.14’ to ‘unifi-6.0’
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.

解法:

sudo apt-get update --allow-releaseinfo-change

再來

sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get autoremove

[MAC] 移除蘋果電腦的檔案附加屬性

如果從網路下載文件,卻發現文件打不開有錯誤,然後上面提示你此文件不安全!

The installation cannot continue as the installer file may be damaged. Download the installer file again.

我們需要移除該份檔案上面的屬性

找出有附加屬性的檔案或文件,指令有多出一個@

$ ls -al@


macOS 提供了一個 xattr系統工具,我們可以使用它來清除文件的屬性

$ xattr -d com.apple.quarantine <filename>

用法:xattr + -d + 附加屬性 + 文件名稱

xattr + 文件名稱:可以直接查看文件的附加屬性。
-r 遞迴刪除,用在目錄