Cubietruck開發板折騰008:apt-get update出現警告問題解決
阿新 • • 發佈:2018-11-10
問題:今天找到了些新的軟體軟,打算更新下源來著的(畢竟之前新增的軟太少了,很多軟體都找不到)。但是在更新軟體源(sudo apt-get update)的時候總是爆出如下錯誤,出現一連串的警告提示:
Unknown Multi-Arch type 'no' for package 'compiz-core' Unknown Multi-Arch type 'no' for package 'compiz-gnome' Unknown Multi-Arch type 'no' for package 'libxapian-dev' Ignoring Provides line with DepCompareOp for package python-cffi-backend-api-max Ignoring Provides line with DepCompareOp for package python-cffi-backend-api-min Ignoring Provides line with DepCompareOp for package python3-cffi-backend-api-max Ignoring Provides line with DepCompareOp for package python3-cffi-backend-api-min Unknown Multi-Arch type 'no' for package 'kwin' Unknown Multi-Arch type 'no' for package 'kwin-dev' Unknown Multi-Arch type 'no' for package 'kwin-wayland' Unknown Multi-Arch type 'no' for package 'kwin-x11' Unknown Multi-Arch type 'no' for package 'libkf5sysguard-dev' Ignoring Provides line with DepCompareOp for package php-psr-http-message-implementation Ignoring Provides line with DepCompareOp for package php-psr-log-implementation Ignoring Provides line with DepCompareOp for package php-seclib Ignoring Provides line with DepCompareOp for package php-sabre-http Ignoring Provides line with DepCompareOp for package php-math-biginteger Ignoring Provides line with DepCompareOp for package pypy-cffi Ignoring Provides line with DepCompareOp for package pypy-cffi-backend-api-max Ignoring Provides line with DepCompareOp for package pypy-cffi-backend-api-min You may want to run apt-get update to correct these problems Reading package lists... Done W: Unknown Multi-Arch type 'no' for package 'compiz-core' W: Unknown Multi-Arch type 'no' for package 'compiz-gnome' W: Unknown Multi-Arch type 'no' for package 'libxapian-dev' W: Ignoring Provides line with DepCompareOp for package python-cffi-backend-api-max W: Ignoring Provides line with DepCompareOp for package python-cffi-backend-api-min W: Ignoring Provides line with DepCompareOp for package python3-cffi-backend-api-max W: Ignoring Provides line with DepCompareOp for package python3-cffi-backend-api-min W: Unknown Multi-Arch type 'no' for package 'kwin' W: Unknown Multi-Arch type 'no' for package 'kwin-dev' W: Unknown Multi-Arch type 'no' for package 'kwin-wayland' W: Unknown Multi-Arch type 'no' for package 'kwin-x11' W: Unknown Multi-Arch type 'no' for package 'libkf5sysguard-dev' W: Ignoring Provides line with DepCompareOp for package php-psr-http-message-implementation W: Ignoring Provides line with DepCompareOp for package php-psr-log-implementation W: Ignoring Provides line with DepCompareOp for package php-seclib W: Ignoring Provides line with DepCompareOp for package php-sabre-http W: Ignoring Provides line with DepCompareOp for package php-math-biginteger W: Ignoring Provides line with DepCompareOp for package pypy-cffi W: Ignoring Provides line with DepCompareOp for package pypy-cffi-backend-api-max W: Ignoring Provides line with DepCompareOp for package pypy-cffi-backend-api-min W: You may want to run apt-get update to correct these problems
一開始一直以為是軟體源配置出現問題,改了好多次結果還是一樣,最後還是百度發現也有人遇到這問題了,大部分都說是apt版本過低了,更新下即可。
抱著嘗試的心態也去試了下,在終端執行如下命令(-f是修復依賴關係的命令):
apt-get install -f apt #普通使用者前面加sudo
執行之後會出現提示,有哪些包會被移出,新增哪些包,更新哪些包(按Y繼續執行即可):
The following packages will be REMOVED: libapache2-mod-php5 perl-modules The following NEW packages will be installed: console-setup-linux gcc-5-base initramfs-tools-core libapt-inst2.0 libapt-pkg5.0 libfdisk1 libgcrypt20 liblz4-1 libmysqlclient20 libperl5.22 libsmartcols1 libsystemd0 linux-base perl-modules-5.22 rename The following packages will be upgraded: apt apt-utils bash-completion console-setup dbus dpkg init-system-helpers initramfs-tools initramfs-tools-bin initscripts keyboard-configuration klibc-utils libalgorithm-diff-xs-perl libapparmor-perl libapt-pkg-perl libblkid1 libcgmanager0 libdbd-mysql-perl libdbi-perl libdbus-1-3 libfile-fcntllock-perl libgpg-error0 libklibc liblocale-gettext-perl libmount1 libncurses5 libncursesw5 libselinux1 libstdc++6 libsub-name-perl libterm-readkey-perl libtext-charwidth-perl libtext-iconv-perl libtext-soundex-perl libtinfo5 lsb-base perl perl-base sysvinit-utils upstart ureadahead util-linux 42 upgraded, 15 newly installed, 2 to remove and 271 not upgraded.
安裝過程中會彈出對話方塊,我直接enter了:
You will need a way to toggle the keyboard between the national layout and the standard Latin layout. │ │ │ │ Right Alt or Caps Lock keys are often chosen for ergonomic reasons (in the latter case, use the combination │ │ Shift+Caps Lock for normal Caps toggle). Alt+Shift is also a popular combination; it will however lose its │ │ usual behavior in Emacs and other programs that use it for specific needs. │ │ │ │ Not all listed keys are present on all keyboards. │ │ │ │ Method for toggling between national and Latin mode:
翻譯:
您將需要一種方法來切換鍵盤之間的國家佈局和標準拉丁佈局。
對於人體工程學的原因,通常選擇合適的ALT或CAP鎖定鍵(在後一種情況下,使用組合)。
對於正常上限切換,移位+ CAP鎖定。ALT+shift也是一個流行的組合,但是它將失去它的空間。
在Emacs和其他使用特定需求的程式中的常見行為。
並非所有列出的鍵都存在於所有鍵盤上。
在國家和拉丁模式之間切換的方法:
再來執行apt-get update的確不會再出現警告了,這次主要問題是apt與當前版本的ubuntun系統不匹配,ubuntun版本高於apt的版本.所以升級一下apt 就行了。