1

While trying to install the .deb applications in Ubuntu 17.04, it shows errors.

  • I used dpkg as well : sudo dpkg -i google-chrome-stable_current_amd64.deb

    Error : Using dpkg command

    • I tried to install gdebi from command line as well and theres another error:

    Trying to install gdebi

    • I tried to install gdebi from the Application Store, but nothing happens there.
    • I also downloaded two files of gdebi from Launchpad

      gdebi_0.9.5.7+nmu1.dsc

      gdebi_0.9.5.7+nmu1.tar.xz

but I dont understand what to do with them.

  • While trying to update:

    sudo apt update

Error :

`E: Malformed entry 1 in list file /etc/apt/sources.list.d/google-chrome.list (Component)

E: The list of sources could not be read. `

2 Answers2

2

By far the simplest way to get up and running is to open a shell and make sure that libappindicator1 is installed. I reinstalled 5 minutes ago, and this was all I needed on a fresh 16.04.3, which I believe is going to behave exactly like 17.04.

    sudo apt-get install libappindicator1

After that is set you can either download and use

    sudo dpkg -i google-blahblah.deb

Or simply choose install from the website, and let the package manager do the work. I prefer the second option even though I like to use the CLI whenever possible, its just faster.

Note that if things act weird, say during installing libappindicator something gives an error or complains and does not finish cleanly, use the command already listed to fix the install problems, like so

    sudo apt-get install -f

Make sure you don't issue it with any other parameters. I admittedly had to issue this command myself even though my files are virgin right now. Chow.

kpm1985
  • 21
0

Based on this error

E: Malformed entry 1 in list file /etc/apt/sources.list.d/google-chrome.list (Component)

The normal content of that file /etc/apt/sources.list.d/google-chrome.list should be:

### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main

Based on the instruction in this file we can just comment out that entry and it will be recreated on update, so

  1. Open the file with:

    sudo nano /etc/apt/sources.lis.d/google.list
    
  2. Added # to the beginning of the line deb dl.google.com/linux/chrome/deb/stable main

  3. Now run the following commands sequentially:

    sudo apt update
    sudo apt install -f 
    sudo apt dist-upgrade
    

Now your upgrade should go as normal.

George Udosen
  • 36,677