怎么样才能变成稳定版呢

最大的社区版本,Ubuntu的发源地
回复
yangdawei.hit
帖子: 245
注册时间: 2015-01-02 15:32
系统: Debian

怎么样才能变成稳定版呢

#1

帖子 yangdawei.hit » 2016-01-30 15:33

> lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux stable-updates (sid)
Release: stable-updates
Codename: sid


过于在sources.list中一直设定为stretch版本,现在换成stable,这样算是变成稳定版了吗?请各位高手指教如何变成稳定版。

https://www.debian.org/doc/manuals/debi ... ng.en.html提到:

代码: 全选

3.1.4 If I were to decide to change to another distribution, Can I do that?

Yes, but it is a one way process. You can go from stable --> testing --> unstable. But the reverse direction is not "possible". So better be sure if you are planning to install/upgrade to unstable.

Actually, if you are an expert and if you are willing to spend some time and if you are real careful and if you know what you are doing, then it might be possible to go from unstable to testing and then to stable. The installer scripts are not designed to do that. So in the process, your configuration files might be lost and.... 
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: 怎么样才能变成稳定版呢

#2

帖子 vickycq » 2016-01-30 16:38

理论上只要将 stable 的优先级设为

代码: 全选

Pin-Priority: 1001
降级是可以进行的。但实际多半会出问题

尤其是从 Jessie 冻结(2014-11-05) 到现在时间过去一年多,变化太大。中间又经历了如 GCC5 (libstdc++6) 升级等大事件

若因在 sid 上遇到问题而想回到 stable,不妨贴出来看看

参考
https://lists.debian.org/debian-testing ... 00039.html
https://ispire.me/downgrade-from-debian ... to-wheezy/
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: 怎么样才能变成稳定版呢

#3

帖子 vickycq » 2016-02-05 14:44

意外尝試了一下
下載並燒錄了 wheezy 系統,沒想到 sources.list 中竟指向 stable,导致新裝的一堆包都是 jessie 的
應用此法,編輯 /etc/apt/preferences

代码: 全选

Package: *
Pin: release a=wheezy
Pin-Priority: 1001
然后 apt-get update && apt-get upgrade && apt-get dist-upgrade
無效!...? 不清楚問題出在哪里
=========================
原来要用 Pin: release a=oldstable
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
yangdawei.hit
帖子: 245
注册时间: 2015-01-02 15:32
系统: Debian

Re: 怎么样才能变成稳定版呢

#4

帖子 yangdawei.hit » 2016-02-06 8:08

vickycq的问题我肯定回答不了,不过期望通过讨论向大家学习。先积累下帖子,今天晚些时候细看看。

初步理解是可能和具体包有关系。首先要确认这些jessie的包在wheezy当中确实也是有的。建议vickycq将sources.list和那些包列出来。

参考:
https://wiki.debian.org/AptPreferences
http://jaqque.sbih.org/kplug/apt-pinning.html
https://www.debian.org/doc/manuals/debi ... te_version
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: 怎么样才能变成稳定版呢

#5

帖子 vickycq » 2016-02-06 9:22

后来发现,原来要把 /etc/apt/preferences 设置为
Package: *
Pin: release a=oldstable
Pin-Priority: 1001
才能降级。但在降级 glibc 时出现依赖错误。
降级的包不多,绝大多数是 apt-get build-dep vlc 升上去的。
看来行不通。
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
yangdawei.hit
帖子: 245
注册时间: 2015-01-02 15:32
系统: Debian

Re: 怎么样才能变成稳定版呢

#6

帖子 yangdawei.hit » 2016-02-06 15:07

代码: 全选

降级的包不多,绝大多数是 apt-get build-dep vlc 升上去的。
看来使用preferences来使用混源,会带来很多问题。这是我们菜鸟还不宜触碰的区域。 :em01
回复