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
简而言之: 删掉报错的文件就行了。。。。
sudo rm /etc/apt/apt.conf.d/50unattended-upgrades.ucf-dist
ubuntu 14.04 升级到 16.04 问题总结的更多相关文章
- 小心!Ubuntu14.04 升级到16.04 的几个坑
收录待用,修改转载已取得腾讯云授权 昨天趁着周末把服务器升级了一把,遇到的坑可不少: sudo apt update sudo apt dist-upgrade 坑1:升级失败后,改用下面命令: su ...
- Ubuntu 14.04 升级到 Ubuntu16.04
Ubuntu 14.04 升级到 Ubuntu16.04 1). 更改source.list 源 (24条消息) Ubuntu16.04 source.list更改源_dylan的博客-CSDN博客_ ...
- 由 15.01升级到 16.04之后,无法启动mysql
参考 16.04 Distribution Upgrade - cannot start MySQL server,然后找到了16.04 upgrade broke mysql-server 我由 1 ...
- Ubuntu14.04升级到Ubuntu16.04
Ubuntu14.04升级到Ubuntu16.04 1.查看目前版本 lsb_release -a 2.执行更新命令 apt-get update && apt-get dist-up ...
- gerrit升级到16.04之后连接不到服务器
升级到ubuntu-16.04后,发现Git-review代码报错: Unable to negotiate with 10.140.110.77 port 29418: no matching ke ...
- Linux包系列的知识(附:Ubuntu16.04升级到18.04的案例)
Linux基础:https://www.cnblogs.com/dunitian/p/4822808.html#linux 之前看到朋友还动不动 apt-get update upgrade,就很纳闷 ...
- ubuntu 14.04 升级到18.04
http://www.360doc.com/content/18/0929/09/35082563_790606785.shtml
- Bash on windows从14.0升级到ubuntu16.04
升级参考:https://www.zhihu.com/question/49411626 解决中文乱码问题参考:http://www.lofter.com/tag/ubuntu%E5%AD%90%E7 ...
- 把腾讯云的ubuntu16.04升级到18.04
腾讯云买的服务器也没怎么弄,正好重装一下玩乐了. 1. 重装系统,在腾讯云里先停机,然后重装系统,目前最高是ubuntu16.04.为什么选择Ubuntu?因为,因为习惯吧,之前学习laravel就是 ...
随机推荐
- Python自然语言处理学习——jieba分词
jieba——“结巴”中文分词是sunjunyi开发的一款Python中文分词组件,可以在Github上查看jieba项目. 要使用jieba中文分词,首先需要安装jieba中文分词,作者给出了如下的 ...
- saltstack系列1之salt-api配置与使用
salt-api salt-api是我们通过restful-api调用salt-master的接口,且调用的时候必须通过认证才能调用,认证的用户为系统用户,下面就说说如何配置salt-api. 不带S ...
- nodejs包管理工具npm
用Node.js安装模块 在某个项目中单独安装的时候,npm会下载所有的文件到你项目中的一个叫做node_modules的文件夹内 全局模块会被安装到{prefix}/lib/node_modules ...
- scanf_s,scanf安全版本
%s,%c必须加sizeof(it)
- Linux静态库生成
Linux上的静态库,其实是目标文件的归档文件. 在Linux上创建静态库的步骤如下: 写源文件,通过 gcc -c xxx.c 生成目标文件. 用 ar 归档目标文件,生成静态库. 配合静态库,写一 ...
- java之 ------ 可变參数和卫条件
可变參数:适用于參数个数不确定.类型确定的情况,java把可变參数当做数组处理. 可变參数必须位于最后一项.当可变參数个数多于一个时,必将有一个不是最后一项,所以仅仅支持有一个可变參数. 可变參数的书 ...
- 8 -- 深入使用Spring -- 1...1Bean后处理器
8.1.1 Bean后处理器(BeanPostProcessor) Bean后处理器主要负责对容器中其他Bean执行后处理,例如为容器中的目标Bean生成代理等. Bean后处理器会在Bean实例创建 ...
- iOS 将Excel导入到SQLite3的过程
1.打开Excel表格,另存为.csv文件 2.打开SQLite3,选择File -> Import -> other... 3.在弹出的文件选择框中选择步骤1保存的.cvs文件 4在弹出 ...
- Install VMware Workstation as a Service
Under default conditions, VMware Workstation does not support the ability to run virtual machines as ...
- Memcached 数据导出与导入
我们使用 memcached-tool 命令来导出数据: [root@localhost ~]# memcached-tool dump > /tmp/.txt Dumping memcache ...