1. 需要的依賴關系未安裝
The required dependency 'apt (>= 1.0.1ubuntu2.13)' is not installed.
http://forum.ubuntu.org.cn/viewtopic.php?t=479718
嘗試:
1)保持軟件源指向 14.04(trusty) 不變
2) sudo apt-get update && sudo apt-get upgrade
此時 apt 應已升級到 1.0.1ubuntu2.13參考 http://packages.ubuntu.com/trusty/apt
3)sudo update-manager -d
2.How to select option in “Configuration grub-pc” menu
https://askubuntu.com/questions/384388/how-to-select-option-in-configuration-grub-pc-menu
1)Use [tab] to switch between options, use [spacebar] to select.
2) Select continue without installing grub,and then update your grub by running below command,
sudo update-grub
3.What do I select for “GRUB install devices” after an update?
https://askubuntu.com/questions/23418/what-do-i-select-for-grub-install-devices-after-an-update
In your case, the correct selection is /dev/sda, the first one. It's the first and only hard disk in your system, whereas /dev/sda1 is a partition on that hard disk. You can install grub on a partition, but it's a "BAD idea".
If you had multiple hard drives and partitions, first find out where your root partition is:
lsblk
(See also: How do I find out what hard disks are in the system?)
You can then install grub on that hard drive. Look for devices labeled "disk" (e.g. "sda", meaning /dev/sda) to install grub into the master boot record (every physical disk device has only one MBR, no matter the partitions).
4.GRUB默認啟動順序修改
ubuntu的/boot/grub目錄下,該目錄下有個文件grub.cfg,就是設置默認啟動的文件。
1)修改權限, sudo chmod w ./grub.cfg
2) grub.cfg里 set default = "0" 將0改為你電腦windows系統的index
使用 apt 命令的時候會報這個錯
Ignoring file '50unattended-upgrades.ucf-dist' in directory '/etc/apt/apt.conf.d/' as it has an invalid filename extension
簡而言之: 刪掉報錯的文件就行了。。。。
sudo rm /etc/apt/apt.conf.d/50unattended-upgrades.ucf-dist