ubuntu 14.04 升級到 16.04 問題總結


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

解決辦法原文參照:https://askubuntu.com/questions/829370/n-ignoring-file-50unattended-upgrades-ucf-dist-in-directory-etc-apt-apt-con/829585

簡而言之: 刪掉報錯的文件就行了。。。。

sudo rm /etc/apt/apt.conf.d/50unattended-upgrades.ucf-dist


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM