Malformed entry error

Questions about Wine on Linux
Locked
johnnyzee
Newbie
Newbie
Posts: 3
Joined: Wed Dec 06, 2017 3:48 am

Malformed entry error

Post by johnnyzee »

Hello

I was trying to load WINE on my Toshiba running Ubuntu 17.04 and was following directions on webpage and received the following message:

E: Malformed entry 55 in list file /etc/apt/sources.list (Component)
E: The list of sources could not be read.
Go to the repository dialogue to correct the problem.
E: _cache->open() failed, please report.

Hello
Am hoping to get some help fixing this problem that I created trying to load WINE on my Toshiba running Ubuntu 17.04.
I was following the steps on the WINE website:
Installing WineHQ packages
If you have previously installed a Wine package from another repository, please remove it and any packages that depend on it (e.g., wine-mono, wine-gecko, winetricks) before attempting to install the WineHQ packages, as they may cause dependency conflicts.

If your system is 64 bit, enable 32 bit architecture (if you haven't already):

sudo dpkg --add-architecture i386
Add the repository:

wget -nc https://dl.winehq.org/wine-builds/Release.key
sudo apt-key add Release.key
sudo apt-add-repository https://dl.winehq.org/wine-builds/ubuntu/
Dialog-warning.svg On Linux Mint 17.x, the last line should be the following:

sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ trusty main'

Then I followed that with:
sudo apt-get install --install-recommends winehq-stable

Any advice on how to fix this will be appreciated.
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Malformed entry error

Post by Bob Wya »

Hiya johnnyzee

Please can you post the output of running:

Code: Select all

for list_file in $(find /etc/apt/ -type f -name "*.list"); do printf "\n%s:\n" "${list_file}"; cat -sn "${list_file}"; done
Please use the forum Code tags:

Code: Select all

Code
for terminal commands and output. That's the Code button directly above the forum edit box.

Ta
Bob
johnnyzee
Newbie
Newbie
Posts: 3
Joined: Wed Dec 06, 2017 3:48 am

Re: Malformed entry error

Post by johnnyzee »

Bob
Thanks for your reply. Hoping this is what you meant by output of running.

Code: Select all

# deb cdrom:[Ubuntu 17.04 _Zesty Zapus_ - Release amd64 (20170412)]/ zesty main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://au.archive.ubuntu.com/ubuntu/ zesty main restricted
# deb-src http://au.archive.ubuntu.com/ubuntu/ zesty main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://au.archive.ubuntu.com/ubuntu/ zesty-updates main restricted
# deb-src http://au.archive.ubuntu.com/ubuntu/ zesty-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://au.archive.ubuntu.com/ubuntu/ zesty universe
# deb-src http://au.archive.ubuntu.com/ubuntu/ zesty universe
deb http://au.archive.ubuntu.com/ubuntu/ zesty-updates universe
# deb-src http://au.archive.ubuntu.com/ubuntu/ zesty-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
## team, and may not be under a free licence. Please satisfy yourself as to 
## your rights to use the software. Also, please note that software in 
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://au.archive.ubuntu.com/ubuntu/ zesty multiverse
# deb-src http://au.archive.ubuntu.com/ubuntu/ zesty multiverse
deb http://au.archive.ubuntu.com/ubuntu/ zesty-updates multiverse
# deb-src http://au.archive.ubuntu.com/ubuntu/ zesty-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://au.archive.ubuntu.com/ubuntu/ zesty-backports main restricted universe multiverse
# deb-src http://au.archive.ubuntu.com/ubuntu/ zesty-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
deb http://archive.canonical.com/ubuntu zesty partner
deb-src http://archive.canonical.com/ubuntu zesty partner

deb http://security.ubuntu.com/ubuntu zesty-security main restricted
# deb-src http://security.ubuntu.com/ubuntu zesty-security main restricted
deb http://security.ubuntu.com/ubuntu zesty-security universe
# deb-src http://security.ubuntu.com/ubuntu zesty-security universe
deb http://security.ubuntu.com/ubuntu zesty-security multiverse
deb http://au.archive.ubuntu.com/ubuntu/ zesty-proposed multiverse universe restricted main
# deb-src http://security.ubuntu.com/ubuntu zesty-security multiverse
deb https://dl.winehq.org/wine-builds/ubuntu/ zesty main
# deb-src https://dl.winehq.org/wine-builds/ubuntu/ zesty main
deb https://dl.winehq.org/wine-builds/ubuntu/trusty main
# deb-src https://dl.winehq.org/wine-builds/ubuntu/trusty main
deb https://dl.winehq.org/wine-builds/ubuntu/ trusty main
# deb-src https://dl.winehq.org/wine-builds/ubuntu/ trusty main
# deb-src https://dl.winehq.org/wine-builds/ubuntu/ trusty main
# deb-src https://dl.winehq.org/wine-builds/ubuntu/ trusty main
# deb-src https://dl.winehq.org/wine-builds/ubuntu/ trusty main
User avatar
dimesio
Moderator
Moderator
Posts: 13205
Joined: Tue Mar 25, 2008 10:30 pm

Re: Malformed entry error

Post by dimesio »

Code: Select all

deb https://dl.winehq.org/wine-builds/ubuntu/ trusty main
If your Ubuntu version is really 17.04 as you stated in your original post, this shouldn't be there. Remove it.
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Malformed entry error

Post by Bob Wya »

@johnnyzee,

You really need to read instructions carefully next time you're following them...
You should never have run the Linux Mint specific repository command!
It's easy to bork a system if you don't bother read usage instructions - especially for root privilege commands! :lol:
On Linux Mint 17.x, the last line should be the following:

Code: Select all

sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ trusty main'
Sorry but...
Image

Also don't forget Ubuntu 17.04 is EOL next month... :!:

Bob
johnnyzee
Newbie
Newbie
Posts: 3
Joined: Wed Dec 06, 2017 3:48 am

Re: Malformed entry error

Post by johnnyzee »

Bob

Thanks for your help and the advice on EOL of 17.04. I will revert my OS to 16.04.
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Malformed entry error

Post by Bob Wya »

johnnyzee wrote:...
Thanks for your help and the advice on EOL of 17.04. I will revert my OS to 16.04.
np.
Just stay safe! 8)

Bob
Locked