在Ubuntu上安装flash

我有一个运行Ubuntu 12.10的EC2实例,我想在其上安装Flash Player。 但是,当我尝试按如下方式安装它时,我无法做到。 有人暗示我该怎么办? 谢谢。

$ sudo apt-get install flashplugin-installer Reading package lists... Done Building dependency tree Reading state information... Done Package flashplugin-installer 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 'flashplugin-installer' has no installation candidate 

我还没有设置VNC,所以我非常喜欢同样的CLI解决方案。

你启用了足够的软件来源吗? 由于您要通过CLI安装Flash,因此您必须编辑此处的sources.list: /etc/apt/sources.list 。 为此, 在备份原始文件后 ,您必须使用sudo和合适的编辑器(如nano

 sudo nano /etc/apt/sources.list 

阅读https://help.ubuntu.com/community/Repositories/Ubuntu以确保包含您需要的来源。 例如:

 deb http://archive.ubuntu.com/ubuntu quantal main restricted multiverse universe deb http://archive.ubuntu.com/ubuntu quantal-updates main restricted multiverse universe deb http://archive.canonical.com/ubuntu quantal partner deb http://extras.ubuntu.com/ubuntu quantal main 

您可以在这里阅读更多内容: https : //help.ubuntu.com/community/Repositories/CommandLine

一旦您编辑了sources.list令您满意,您将需要刷新内容并通过运行来了解更改

 sudo apt-get update 

然后,您应该能够安装Flash Player

 sudo apt-get install flashplugin-installer