사용자 도구

사이트 도구


linux:ubuntu:upgrade

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판 이전 판
다음 판
이전 판
linux:ubuntu:upgrade [2016/01/02 22:29]
kwon37xi
linux:ubuntu:upgrade [2021/11/11 15:40] (현재)
kwon37xi [PPA 등도 함께 업그레이드]
줄 1: 줄 1:
 ====== Ubuntu Upgrade ====== ====== Ubuntu Upgrade ======
   * [[http://www.ubuntu.com/download/desktop/upgrade|Ubuntu Upgrade]]   * [[http://www.ubuntu.com/download/desktop/upgrade|Ubuntu Upgrade]]
 +
 +===== 배포판/패키지 관리 GUI 설정 =====
 +<code sh>
 +sudo apt-get install software-properties-gtk
 +</code>
 +  * ''software-properties-gtk''를 통해 종합적인 패키지, 배포판, 추가 하드웨어 드라이버 관리등을 수행한다.
  
 ===== 배포판(dist) 업그레이드 ===== ===== 배포판(dist) 업그레이드 =====
줄 9: 줄 15:
 # 업그레이드 # 업그레이드
 # /etc/update-manager/release-upgrades 파일에서 # /etc/update-manager/release-upgrades 파일에서
-# Prompt=lts -> Prompt=normal 로 변경+# Prompt=lts -> Prompt=normal 로 변경. lts는 장기 지원 버전에 대해서만 업그레이드를 지원하는 모드임.
  
 sudo do-release-upgrade sudo do-release-upgrade
줄 19: 줄 25:
   * 업그레이드 진행시 PPA 리포지토리가 모두 비활성화된다. 업그레이드 후 배포판에 맞게 다시 활성화 시켜줄 것.   * 업그레이드 진행시 PPA 리포지토리가 모두 비활성화된다. 업그레이드 후 배포판에 맞게 다시 활성화 시켜줄 것.
  
-====== update-manger ====== +===== update-manger ===== 
-  * 패키지 및 배포판 업그레이드 관리+  * 패키지 및 배포판 업그레이드 관리<code sh> 
 +sudo apt-get install update-manager 
 +</code>
  
 +===== PPA 등도 함께 업그레이드 =====
 +  * Ubuntu release 버전을 업그레이드할 때 기본적으로 third party repository는 구버전으로 그대로 남아 있으면서 disable 돼 버림.
 +
 +==== distribution 변경 작업 ====
 +  * 이를 처리하려면 수동으로는 ''/etc/apt/sources.list.d/''의 파일들에서 배포판 버전을 직접 변경하거나
 +  * "소프트웨어 & 업데이트"에서 편집해서 바꾸거나
 +  * [[https://newbedev.com/is-there-a-tool-to-update-my-ppa-sources-list-entries-after-upgrading|y-ppa-manager]]의 **Re-enable working PPAs after Ubuntu Upgrade** 기능으로 PPA들을 업그레이드해줄 수 있다.
 +
 +==== PPA/ThirdPartyRepository 비활성화 금지 ====
 +  * 배포판 업그레이드시에 PPA/ThirdParty 리포지토리는 자동으로 disable 되는데, 이를 막는 방법.
 +  * **단순히 disable만 막을 뿐, distribution 변경 작업은 해야만 한다.**
 +  * ''18.10'' -> ''19.04''부터 자동으로 가능해짐.
 +  * [[https://askubuntu.com/questions/1238908/do-release-upgrade-disables-third-party-software-sources-easy-way-to-re-enable|apt - do-release-upgrade disables third party software sources. Easy way to re-enable them? - Ask Ubuntu]]
 +  * [[https://www.linuxuprising.com/2019/01/ubuntu-users-can-now-keep-ppas-and.html|Ubuntu Users Can Now Keep PPAs And Third Party Repositories Enabled When Upgrading To A Newer Ubuntu Version - Linux Uprising Blog]]
 +  * ''RELEASE_UPGRADER_ALLOW_THIRD_PARTY'' 환경 변수 혹은 설정을 통해 할 수 있다.
 +
 +<code sh>
 +# 일시적으로만 필요하므로 환경 변수를 통해 처리
 +# GUI
 +RELEASE_UPGRADER_ALLOW_THIRD_PARTY=1 update-manager -d
 +
 +# CLI
 +RELEASE_UPGRADER_ALLOW_THIRD_PARTY=1 do-release-upgrade -d
 +</code>
 +  * 설정으로 처리 : ''/etc/update-manager/release-upgrades.d/원하는파일명.cfg'' 생성
 +<code>
 +[Sources]
 +AllowThirdParty = yes
 +
 +# 특정 ThirdParty 를 지정해서 disable 금지
 +[ThirdPartyMirrors]
 +{unique_name} = {url}
 +
 +# example
 +[ThirdPartyMirrors]
 +opera/opera-stable=http://deb.opera.com/opera-stable/
 +</code>
  
linux/ubuntu/upgrade.1451743150.txt.gz · 마지막으로 수정됨: 2016/01/02 22:29 저자 kwon37xi