====== Ubuntu Upgrade ====== * [[http://www.ubuntu.com/download/desktop/upgrade|Ubuntu Upgrade]] ===== 배포판/패키지 관리 GUI 설정 ===== sudo apt-get install software-properties-gtk * ''software-properties-gtk''를 통해 종합적인 패키지, 배포판, 추가 하드웨어 드라이버 관리등을 수행한다. ===== 배포판(dist) 업그레이드 ===== * [[http://askubuntu.com/questions/5763/upgrading-from-the-command-line|Upgrading from command line]] # 선행작업 sudo apt-get install update-manager-core # 업그레이드 # /etc/update-manager/release-upgrades 파일에서 # Prompt=lts -> Prompt=normal 로 변경. lts는 장기 지원 버전에 대해서만 업그레이드를 지원하는 모드임. sudo do-release-upgrade # 혹은 아래 명령으로 배포판 업그레이드 검사 후 업그레이드 가능. sudo update-manager -c * 업그레이드 진행시 PPA 리포지토리가 모두 비활성화된다. 업그레이드 후 배포판에 맞게 다시 활성화 시켜줄 것. ===== update-manger ===== * 패키지 및 배포판 업그레이드 관리 sudo apt-get install update-manager ===== 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'' 환경 변수 혹은 설정을 통해 할 수 있다. # 일시적으로만 필요하므로 환경 변수를 통해 처리 # GUI RELEASE_UPGRADER_ALLOW_THIRD_PARTY=1 update-manager -d # CLI RELEASE_UPGRADER_ALLOW_THIRD_PARTY=1 do-release-upgrade -d * 설정으로 처리 : ''/etc/update-manager/release-upgrades.d/원하는파일명.cfg'' 생성 [Sources] AllowThirdParty = yes # 특정 ThirdParty 를 지정해서 disable 금지 [ThirdPartyMirrors] {unique_name} = {url} # example [ThirdPartyMirrors] opera/opera-stable=http://deb.opera.com/opera-stable/