0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

E: Package 'libqt4-dev' has no installation candidate と E: Package 'ipython' has no installation candidate の問題を解決しちゃうわよ!

Posted at
cd ~/torch; bash install-deps;

pix2pixをPytorchでやっちゃおうと思ってる人は、このコマンド打つと思うんだけど、あたしはこんなエラー出たのよ。

Hit:1 http://jp.archive.ubuntu.com/ubuntu focal InRelease
Hit:2 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  InRelease                  
Hit:3 http://jp.archive.ubuntu.com/ubuntu focal-updates InRelease                                            
Hit:4 http://jp.archive.ubuntu.com/ubuntu focal-backports InRelease                                          
Hit:5 http://security.ubuntu.com/ubuntu focal-security InRelease                           
Hit:6 http://archive.canonical.com/ubuntu focal InRelease  
.
.
.
.
.
Reading state information... Done
Note, selecting 'git' instead of 'git-core'
Note, selecting 'libncurses-dev' instead of 'ncurses-dev'
Package libqt4-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package ipython is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libqt4-dev' has no installation candidate
E: Package 'ipython' has no installation candidate

まぁ瞬殺だわよ。
これして頂戴。ただし、Ubuntu20.04の人に限るわ。他のバージョンの人はこのサイト参照して頂戴ね。
https://ubuntuhandbook.org/index.php/2020/07/install-qt4-ubuntu-20-04/

sudo add-apt-repository ppa:rock-core/qt4

次に /etc/apt/sources.list の最後にこの3行を加えちゃいましょう。

'''
deb http://archive.ubuntu.com/ubuntu bionic main universe deb
http://archive.ubuntu.com/ubuntu bionic-security main universe
deb http://archive.ubuntu.com/ubuntu bionic-updates main universe
'''

書くときはお好きなエディタでいいわよ♡
あたしはViが好きだからViでやったわ。

さて、もう終わりよ。やっておしまいなさい!

cd ~/torch; bash install-deps;

終わり。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?