Installing flash on Ubuntu

247

Have you enabled sufficent sources of software? Since you want to install Flash via the CLI, you will have to edit your sources.list found here: /etc/apt/sources.list. To do so, you'll have to use sudo and a suitable editor such as nano after backing up the original file:

sudo nano /etc/apt/sources.list

Read https://help.ubuntu.com/community/Repositories/Ubuntu to ensure that the sources you need are included. For example:

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

You can read more here: https://help.ubuntu.com/community/Repositories/CommandLine

Once you've edited sources.list to your satisfaction, you will need to refresh things and make apt aware of the changes by running

sudo apt-get update

You should then be able to install Flash Player with

sudo apt-get install flashplugin-installer
Share:
247

Related videos on Youtube

Louis Magnotti
Author by

Louis Magnotti

Updated on November 23, 2022

Comments

  • Louis Magnotti
    Louis Magnotti over 1 year

    Sorry for the code vomit below, but I really need a second set of eyes on this problem. I appreciate your time and help! I know it's a small issue on a make-believe treehouse app but it's choking me up when I run bin/rake. Let me know if anyone has any ideas. Thanks!

     1) Adding todo items is successful with valid content
     Failure/Error: within("ul.todo_items") do
     Capybara::ElementNotFound:
       Unable to find css "ul.todo_items"
     # ./spec/features/todo_items/create_spec.rb:14:in `block (2 levels) in <top (required)>'
    
      2) todo_lists/index renders a list of todo_lists
     Failure/Error: assert_select "tr>td", :text => "Title".to_s, :count => 2
     Minitest::Assertion:
        Expected exactly 2 elements matching "tr > td", found 0..
        Expected: 2
       Actual: 0
      # ./spec/views/todo_lists/index.html.erb_spec.rb:20:in `block (2 levels) in <top (required)>'
    
      3) Viewing todo items displays item content when a todo list has items
      Failure/Error: expect(page.all("ul.todo_items li").size).to eq(2)
    
       expected: 2
            got: 0
    
       (compared using ==)
     # ./spec/features/todo_items/index_spec.rb:25:in `block (2 levels) in <top (required)>'
    
      4) Viewing todo items displays the title of the todo list
      Failure/Error: within("h1") do
      Capybara::Ambiguous:
        Ambiguous match, found 2 elements matching css "h1"
       # ./spec/features/todo_items/index_spec.rb:9:in `block (2 levels) in <top (required)>'
    

    Here is my: app/views/todo_lists/index.html.erb

    <h1>Todo Lists</h1>
    
    
    <% @todo_lists.each do |todo_list| %>
    <div class="todo_list" id="<%= dom_id(todo_list) %>">
    <h2><%= todo_list.title %></h2>
    <p><%= todo_list.description %></p>
     <ul class="functions">
        <li><%= link_to "List Items", todo_list_todo_items_path(todo_list) %></li>
        <li><%= link_to 'Show', todo_list %></li>
        <li><%= link_to 'Edit', edit_todo_list_path(todo_list) %></li>
        <li><%= link_to 'Destroy', todo_list, method: :delete, data: { confirm: 'Are you sure?' } %></li>
    </ul>
        <br class="clear" />
    
     </div>
     <% end %>
    
     <br>
    
      <%= link_to 'New Todo list', new_todo_list_path %>
    

    Here is my: spec/features/todo_items/index_spec.rb

    require 'spec_helper'
    
     describe "Viewing todo items" do
    let!(:todo_list) { TodoList.create(title: "Grocery list", description: "Groceries")}
    
    
    it "displays the title of the todo list" do
            visit_todo_list(todo_list)
        within("h1") do
            expect(page).to have_content(todo_list.title)
        end
    end
    
     it "displays no items when a todo list is empty" do    
         visit_todo_list(todo_list)
         expect(page.all("ul.todo_items li").size).to eq(0)
     end
    
     it "displays item content when a todo list has items" do
        todo_list.todo_items.create(content: "Milk")
        todo_list.todo_items.create(content: "Eggs")
    
         visit_todo_list(todo_list)
    
         expect(page.all("ul.todo_items li").size).to eq(2)
    
         within "ul.todo_items" do
             expect(page).to have_content("Milk")
             expect(page).to have_content("Eggs")
         end
        end
      end
    

    Here is my: /spec/features/todo_items/create_spec

    require 'spec_helper'
    
     describe "Adding todo items" do
         let!(:todo_list) { TodoList.create(title: "Grocery list", description: "Groceries")}
    
    
    
     it "is successful with valid content" do
         visit_todo_list(todo_list)
         click_link "New Todo Item"
         fill_in "Content", with: "Milk"
         click_button "Save"
         expect(page).to have_content("Added todo list item.")
         within("ul.todo_items") do
             expect(page).to have_content("Milk")
         end
     end
    
     it "displays an error with no content" do
         visit_todo_list(todo_list)
         click_link "New Todo Item"
         fill_in "Content", with: ""
        click_button "Save"
        within("div.flash") do
            expect(page).to have_content("There was a problem adding that todo list item.")
        end
        expect(page).to have_content("Content can't be blank")
    end
    
    it "displays an error with content less than 2 characters long" do
        visit_todo_list(todo_list)
        click_link "New Todo Item"
        fill_in "Content", with: "1"
        click_button "Save"
        within("div.flash") do
            expect(page).to have_content("There was a problem adding that todo list item.")
        end
        expect(page).to have_content("Content is too short")
     end
     end
    

    Here's my spec/views/todo_lists/index.html.erb_spec.rb

    require 'spec_helper'
    
    describe "todo_lists/index" do
      before(:each) do
      assign(:todo_lists, [
          stub_model(TodoList,
        :title => "Title",
        :description => "MyText"
      ),
      stub_model(TodoList,
        :title => "Title",
        :description => "MyText"
      )
    ])
     end
    
      it "renders a list of todo_lists" do
        render
        # Run the generator again with the --webrat flag if you want to use webrat matchers
         assert_select "tr>td", :text => "Title".to_s, :count => 2
         assert_select "tr>td", :text => "MyText".to_s, :count => 2
      end
    end
    
  • Louis Magnotti
    Louis Magnotti over 9 years
    Hey p11y, Thank you so much for your help. Unfortunately, this didn't work or anything like it that I tried. If any of either of you get a free second, would you mind running it yourself and see what's actually going on? It would really mean a lot. Thanks again. github.com/lamagnotti/odot
  • Patrick Oscity
    Patrick Oscity over 9 years
    Cloning the repo and running your tests gives me 63 examples, 20 failures, 3 pending. You are basically asking us to do your work - sorry but I have no time for fixing all that. Have you got any experience with Rails and Testing? It looks like you need to go through some very basic tutorials. Have a look at codeschool.com - the trial is inexpensive and they will get you up to speed quickly.
  • Louis Magnotti
    Louis Magnotti over 9 years
    Thanks for the help p11y! I understand. Still learning! Cheers!
  • Patrick Oscity
    Patrick Oscity over 9 years
    Good luck with your project!
  • Admin
    Admin over 6 years
    Greetings, @Zanna It seems the recommended method is using adobe-flashplugin, and in fact the page leading on from that has a screenshot where flashplugin-installer is removed. Is this information still relevant?
  • Admin
    Admin over 6 years
    @Seb I doubt it - I think this information is obsolete :( alas it's not my post - I just edited it to improve the formatting