{"id":1748,"date":"2015-03-22T11:15:57","date_gmt":"2015-03-22T18:15:57","guid":{"rendered":"http:\/\/xiehang.com\/blog\/?p=1748"},"modified":"2015-03-22T11:15:57","modified_gmt":"2015-03-22T18:15:57","slug":"lock-a-package-on-ubuntu","status":"publish","type":"post","link":"https:\/\/xiehang.com\/blog\/2015\/03\/22\/lock-a-package-on-ubuntu\/","title":{"rendered":"“Lock” a package on Ubuntu"},"content":{"rendered":"

echo package-name hold | sudo dpkg --set-selections<\/code><\/p>\n

So that it will not be upgraded.<\/p>\n

Reason: a package’s ppa has a brand new version that is not compatible with previous version, but since the new version is there so Ubuntu downloaded and installed the new version, and it made almost everything on my system broken.<\/p>\n

Have to lock down that package, unless I’m so sure I can upgrade it.<\/p>\n","protected":false},"excerpt":{"rendered":"

echo package-name hold | sudo dpkg –set-selections So that it will not be upgraded. Reason: a package’s ppa has a brand new version that is not compatible with previous version, but since the new version is there so Ubuntu downloaded and installed the new version, and it made almost everything on my system broken. Have […]<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[510,418,511,59],"_links":{"self":[{"href":"https:\/\/xiehang.com\/blog\/wp-json\/wp\/v2\/posts\/1748"}],"collection":[{"href":"https:\/\/xiehang.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xiehang.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xiehang.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/xiehang.com\/blog\/wp-json\/wp\/v2\/comments?post=1748"}],"version-history":[{"count":1,"href":"https:\/\/xiehang.com\/blog\/wp-json\/wp\/v2\/posts\/1748\/revisions"}],"predecessor-version":[{"id":1749,"href":"https:\/\/xiehang.com\/blog\/wp-json\/wp\/v2\/posts\/1748\/revisions\/1749"}],"wp:attachment":[{"href":"https:\/\/xiehang.com\/blog\/wp-json\/wp\/v2\/media?parent=1748"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xiehang.com\/blog\/wp-json\/wp\/v2\/categories?post=1748"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xiehang.com\/blog\/wp-json\/wp\/v2\/tags?post=1748"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}