I have just upgraded my Dell Inspiron 1545 laptop from Ubuntu 12.04 to 13.04. Unfortunately the top bar now has a little red circle with a minus sign in it. When I click it, it opens a box with the following message in it:
An error occurred, please run Package Manager from the right-click from the right click window or apt-get in a terminal to see what is wrong. The error message was: ‘Unknown Error:»(E:The package google-chrome-stable needs to be reinstalled, but I can’t find an archive for it.)’This usually means that you have >installed packages with unmet dependencies
I don’t have a lot of experience using ubuntu, or linux in general, and I don’t know what this means. It sounded to me like some kind of google chrome error. I had downloaded and installed google chrome only a few minutes before. I ran apt-get in the terminal but it didn’t do anything, and I had no idea what run the Package Manager from the right click window meant. Google chrome and the geany ide are the only sofware I have installed since installing linux. The computer seems to be running perfectly fine. Do you have any suggestions on what I should do?
The results from: sudo apt-get -f install are:
E: The package google-chrome-stable needs to be reinstalled, but I can’t find an archive for it.
asked May 27, 2013 at 1:11
JamesJames
3,1035 gold badges20 silver badges21 bronze badges
1
It seems that google-chrome-stable have broke your system for some reason. Try this:
Open your terminal window
Ctrl+Alt+T
Then right there type commands (after each command type enter and respond yes to questions)
sudo apt-get remove google-chrome-stable
Then update the system via
sudo apt-get update && sudo apt-get upgrade
Let apt-get run and if there is any error post as comment here and I will help (or anyone available)
If the Commands fails you can try these ones:
Update Packages
sudo apt-get update
clean the downloaded packages (where there might be broken ones)
sudo apt-get clean
Remove unneeded packages (careful! If it might list something that is needed but its dependency or such have been removed and left it orphan)
sudo apt-get autoremove
Reconfigure all packages
sudo dpkg --configure -a
Fix broken packages
sudo apt-get install -f
answered May 27, 2013 at 19:30
Stefano MtangooStefano Mtangoo
2,7602 gold badges28 silver badges39 bronze badges
16
Removing the packages list and updating solved the issue for me
Open the terminal: Ctrl+Alt+T
Remove the package list:
sudo rm -vf /var/lib/apt/lists/*
-
-v, --verbose
explain what is being done -
-f, --force
ignore nonexistent files and arguments, never prompt
Update the packages:
sudo apt-get update
answered Aug 16, 2016 at 6:38
Deepak MahakaleDeepak Mahakale
1,0152 gold badges10 silver badges17 bronze badges
1
Fixing the problem with Software Center
When I encountered the same problem (not sure which application caused the problem), running Software Center gave me the option to repair dependencies (in fact it forced me to do so because it would be ‘unable to install other software until the problem was fixed’).
It worked without problems, and the error sign in the notification area disappeared.
answered Nov 29, 2013 at 19:27
ajoajo
3051 gold badge3 silver badges8 bronze badges
1
-
an error occurred please run package manager
I get this error message in the top right corner i was trying to install google chrome in terminal before i got this error the next day my wifi speeds are extremely slow work normal on any other devices
An error occurred,please run package manager from the right-click menu or apt-get in a terminal to see what is wrong. The error message was: ‘Error: Opening the cache (E:Malformed entry 1 in list file /etc/apt/sources.list.d/google-chrome.list (Suite), E:The list of sources could not be read.)’. This usually mean that your installed packages have unmet dependencies
looked everywhere for answers any help would be great TY
-
Re: an error occurred please run package manager
luger2; Hello — Welcome to the forum.
The system is telling you that it does not accept a fetch file : /etc/apt/sources.list.d/google-chrome.list .
Let’s see what the problem here is .
Post back — Between Code Tags — the output of terminal command:Code:
cat /etc/apt/sources.list.d/google-chrome.list
code tag tutorial:
http://ubuntuforums.org/showthread.p…8#post12776168ain’t nothing but a thing
-
Re: an error occurred please run package manager
-
Re: an error occurred please run package manager
You need to remove or disable that non [arch-amd64] entry
Here’s quick one-liner that will/should at least disable it.Code:
sudo sed -i 's/deb h/#deb h/g' /etc/apt/sources.list.d/google-chrome.list
-
Re: an error occurred please run package manager
i just tried this it didnt show anything after i hit enter
-
Re: an error occurred please run package manager
luger2; Well’
Originally Posted by luger2
i just tried this it didnt show anything after i hit enter
That is to be hoped for . In linux there is no response to a completed command . System does as told . Now if there is a problem then the system will so advise .
-
Re: an error occurred please run package manager
i dont understand do you mean thats all that can be done for this problem
and also i got a new error added it says
error: opening the cache (W:ignoring file google-chrome.list-30aug2016 ‘in directory’ /etc/apt/sources.list.d/ as it has an invalid filename extension, E:Type ‘stable’ is not known on line 3 in the source list /etc/apt/sources.list.d/google-chrome.list, E:The List of sources could not be read.)’.
-
Re: an error occurred please run package manager
Originally Posted by Bashing-om
luger2; Well’
That is to be hoped for . In linux there is no response to a completed command . System does as told . Now if there is a problem then the system will so advise .
That
Now open software updater or run
it should no longer show the error.
Basically the error is caused by the fact that google stopped support for 32-bit versions of chrome, but they had trouble fixing the repository information and so the normal deb http entry went looking for the 32-bit packages, which had since been removed and that caused a ton of trouble, and in the end they found it easier to simply add the [arch=amd64] to the line which forces it to only look for the amd64, or 64-bit, version, and now to see if I can make the sentence even longer…
Edit:
and also i got a new error added it says
error: opening the cache (W:ignoring file google-chrome.list-30aug2016 ‘in directory’ /etc/apt/sources.list.d/ as it has an invalid filename extension, E:Type ‘stable’ is not known on line 3 in the source list /etc/apt/sources.list.d/google-chrome.list, E:The List of sources could not be read.)’.was this
Code:
deb http://dl.google.com/linux/chrome/deb/ stable main deb http://dl.google.com/linux/chrome/deb/ stable main deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
the full file as is, like you copied and pasted it directly?
if so the error is right stable is invalid, so you need to disable that too.
like aboveCode:
sudo sed -i 's/^stable/#stable/g' /etc/apt/sources.list.d/google-chrome.list
the ^stable will make it only # comment out the stable entry that starts the line, and not the stable in the
deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
line so that this
stable main
will look like this
#stable main
so the whole entry should look like thisCode:
#deb http://dl.google.com/linux/chrome/deb/ #stable main #deb http://dl.google.com/linux/chrome/deb/ stable main deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
or
runCode:
sudo nano /etc/apt/sources.list.d/google-chrome.list
and remove everything but the last line
so it looks like only
deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable mainthen hit ctrl + X then hit Y and then enter, this will save and exit.
AS for the other thing, you can just delete the /etc/apt/sources.list.d/google-chrome.list-30aug2016 file, or do nothing, it’s only a warning and inconsequential.
Last edited by deadflowr; September 28th, 2017 at 09:29 PM.
Reason: again, with feeling
-
Re: an error occurred please run package manager
i got this and software updater does not open
N: Ignoring file ‘google-chrome.list-30Aug2016’ in directory ‘/etc/apt/sources.list.d/’ as it has an invalid filename extension
E: Type ‘stable’ is not known on line 3 in source list /etc/apt/sources.list.d/google-chrome.list
E: The list of sources could not be read.
-
Re: an error occurred please run package manager
Originally Posted by luger2
i got this and software updater does not open
N: Ignoring file ‘google-chrome.list-30Aug2016’ in directory ‘/etc/apt/sources.list.d/’ as it has an invalid filename extension
E: Type ‘stable’ is not known on line 3 in source list /etc/apt/sources.list.d/google-chrome.list
E: The list of sources could not be read.Read my last post, I edited it with more since you posted as i wrote your previous post.
Приветствую.
Помогите, плиз! (я новичок в Linux, Ubuntu 10.10)
Перестал работать Ubuntu Software Center? при выборе соотв строки меню начинается запуск, но закрывается не запустившись, не работает apt-get update:
~$ software-center
Traceback (most recent call last):
File «/usr/share/software-center/softwarecenter/apt/aptcache.py», line 105, in open
self._cache = apt.Cache(GtkMainIterationProgress())
File «/usr/lib/python2.6/dist-packages/apt/cache.py», line 88, in __init__
self.open(progress)
File «/usr/lib/python2.6/dist-packages/apt/cache.py», line 130, in open
self._list.read_main_list()
SystemError: E:Type ‘wget’ is not known on line 55 in source list /etc/apt/sources.list
2011-11-11 22:48:44,175 — softwarecenter.fixme — WARNING — logs to the root logger: ‘(‘/usr/share/software-center/softwarecenter/view/widgets/mkit_themes.py’, 675, ‘retrieve’)’
2011-11-11 22:48:44,175 — root — WARNING — No styling hints for eco were found… using Human hints.
Traceback (most recent call last):
File «/usr/bin/software-center», line 90, in <module>
app = SoftwareCenterApp(datadir, xapian_base_path, options, args)
File «/usr/share/software-center/softwarecenter/app.py», line 312, in __init__
self.view_switcher = ViewSwitcher(self.view_manager, datadir, self.db, self.cache, self.icons)
File «/usr/share/software-center/softwarecenter/view/viewswitcher.py», line 59, in __init__
store = ViewSwitcherList(view_manager, datadir, db, cache, icons)
File «/usr/share/software-center/softwarecenter/view/viewswitcher.py», line 321, in __init__
self._update_channel_list()
File «/usr/share/software-center/softwarecenter/view/viewswitcher.py», line 399, in _update_channel_list
self._update_channel_list_installed_view()
File «/usr/share/software-center/softwarecenter/view/viewswitcher.py», line 452, in _update_channel_list_installed_view
if (pkgname in self.cache and
File «/usr/share/software-center/softwarecenter/apt/aptcache.py», line 128, in __contains__
return self._cache.__contains__(k)
AttributeError: ‘NoneType’ object has no attribute ‘__contains__’
…
$ apt-get update
E: Type ‘wget’ is not known on line 55 in source list /etc/apt/sources.list
E: The list of sources could not be read.
помогите вылечить
13.04aptgoogle-chromepackage-management
I have just upgraded my Dell Inspiron 1545 laptop from Ubuntu 12.04 to 13.04. Unfortunately the top bar now has a little red circle with a minus sign in it. When I click it, it opens a box with the following message in it:
An error occurred, please run Package Manager from the right-click from the right click window or apt-get in a terminal to see what is wrong. The error message was: ‘Unknown Error:»(E:The package google-chrome-stable needs to be reinstalled, but I can’t find an archive for it.)’This usually means that you have >installed packages with unmet dependencies
I don’t have a lot of experience using ubuntu, or linux in general, and I don’t know what this means. It sounded to me like some kind of google chrome error. I had downloaded and installed google chrome only a few minutes before. I ran apt-get in the terminal but it didn’t do anything, and I had no idea what run the Package Manager from the right click window meant. Google chrome and the geany ide are the only sofware I have installed since installing linux. The computer seems to be running perfectly fine. Do you have any suggestions on what I should do?
The results from: sudo apt-get -f install are:
E: The package google-chrome-stable needs to be reinstalled, but I can’t find an archive for it.
-
DiabloGamer
- Level 2
- Posts: 10
- Joined: Sun Apr 25, 2021 6:14 pm
Unable to install Wine on Ubuntu 20.04.2.0
I’m re-sending my post this time with the forum code-tag (sorry for the mistake, I’m new here).
I just installed Ubuntu on this computer then tried to install Wine but it didn’t work. Here’s the detailed script of the events:
1) I installed Unbuntu 20.04.2.0 with the minimal option (a fresh install)
2) I did all the updates
3) I installed VLC, Libre Office 7.1 and the game O.A.D. That’s it, nothing else.
4) I then started the process to install Wine
5) I did a check for my version just to be sure
Code: Select all
me@Computer:~$ sudo dpkg --add-architecture i386
[sudo] password for me:
6) I then started the installation of Wine and got an error message at the end:
Code: Select all
e@Computer:~$ wget -nc https://dl.winehq.org/wine-builds/winehq.key
--2021-04-25 18:53:25-- https://dl.winehq.org/wine-builds/winehq.key
Resolving dl.winehq.org (dl.winehq.org)... 151.101.138.217
Connecting to dl.winehq.org (dl.winehq.org)|151.101.138.217|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3220 (3.1K) [application/pgp-keys]
Saving to: ‘winehq.key’
winehq.key 100%[===================>] 3.14K --.-KB/s in 0s
2021-04-25 18:53:26 (14.0 MB/s) - ‘winehq.key’ saved [3220/3220]
me@Computer:~$ sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/focal main'
E: Malformed entry 58 in list file /etc/apt/sources.list (Component)
E: The list of sources could not be read.
7) I tried again, this time with a space just before «focal» but still an error message at the end:
Code: Select all
me@Computer:~$ sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ focal main'
E: Malformed entry 58 in list file /etc/apt/sources.list (Component)
E: The list of sources could not be read.
What’s wrong? It’s a complete fresh install and there’s a problem right from the start. I didn’t check the file in question because I don’t know how yet and wouldn’t know what to look for. Can someone help me fix this problem and also to explain me how this happened so I can learn from that.
Thanks a lot
-
dimesio
- Moderator
- Posts: 13143
- Joined: Tue Mar 25, 2008 10:30 pm
Re: Unable to install Wine on Ubuntu 20.04.2.0
Post
by dimesio » Mon Apr 26, 2021 7:10 am
DiabloGamer wrote: ↑Sun Apr 25, 2021 6:51 pm
7) I tried again, this time with a space just before «focal» but still an error message at the end:Code: Select all
me@Computer:~$ sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ focal main' E: Malformed entry 58 in list file /etc/apt/sources.list (Component) E: The list of sources could not be read.
Did you also delete the entry without the space that you had previously added? You need to.
-
DiabloGamer
- Level 2
- Posts: 10
- Joined: Sun Apr 25, 2021 6:14 pm
Re: Unable to install Wine on Ubuntu 20.04.2.0
Post
by DiabloGamer » Tue Apr 27, 2021 1:40 am
Hi Dimesio. no i did not. How do I do that?
Also, I now have a warning on Ubuntu:
An error occurred, please run Package Manager from right-click menu or apt-get in terminal to see what is wrong. The error message was «Error:Opening the cache (E:Malformed entry 58 in list file /etc/apt/source.list (Component),E:The list of sources cannot be read.)’. This usually means that your installed packages have unmet dependencies
What should I do from there?
A) delete the entry without the space…how?
B) anything else you suggest?
Big thanks for the help!
-
DiabloGamer
- Level 2
- Posts: 10
- Joined: Sun Apr 25, 2021 6:14 pm
Re: Unable to install Wine on Ubuntu 20.04.2.0
Post
by DiabloGamer » Tue Apr 27, 2021 10:32 am
Hi Dimesio, maybe you forgot that I’ve mentioned that I’m new to this. Remember the very first day you tried Linux? Then you know how I feel right now lol. I have to do this as sudo…. OK, I know that sudo is the master of all master and make a mistake in sudo and it might be a nightmare! So what’s the steps? I open the editor, but then what? How to be a sudo, etc…. I’m heading for trouble if I don’t get the exact steps to do
-
DiabloGamer
- Level 2
- Posts: 10
- Joined: Sun Apr 25, 2021 6:14 pm
Re: Unable to install Wine on Ubuntu 20.04.2.0
Post
by DiabloGamer » Wed Apr 28, 2021 2:00 am
OK, I did that.
You told me to delete one row, but I see two rows. Is it possible to send you privately the sources.list file so you can check it and tell me what to do (it could also be other problem on other lines, who knows)? We may save a lot of time and trouble like that
Also, nano doesn’t show the line counts. Any suggestion for something better?
Thanks for all the help, much appreciated!
-
DiabloGamer
- Level 2
- Posts: 10
- Joined: Sun Apr 25, 2021 6:14 pm
Re: Unable to install Wine on Ubuntu 20.04.2.0
Post
by DiabloGamer » Thu Apr 29, 2021 1:53 pm
Here is the full content of sources.list file. Please let me know about anything wrong you can see in it and which lines to delete. Thx!
Code: Select all
deb cdrom:[Ubuntu 20.04.2.0 LTS _Focal Fossa_ - Release amd64 (20210209.1)]/ focal main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://us.archive.ubuntu.com/ubuntu/ focal main restricted
# deb-src http://us.archive.ubuntu.com/ubuntu/ focal main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ focal-updates main restricted
# deb-src http://us.archive.ubuntu.com/ubuntu/ focal-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://us.archive.ubuntu.com/ubuntu/ focal universe
# deb-src http://us.archive.ubuntu.com/ubuntu/ focal universe
deb http://us.archive.ubuntu.com/ubuntu/ focal-updates universe
# deb-src http://us.archive.ubuntu.com/ubuntu/ focal-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://us.archive.ubuntu.com/ubuntu/ focal multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ focal multiverse
deb http://us.archive.ubuntu.com/ubuntu/ focal-updates multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ focal-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://us.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ focal-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 focal partner
# deb-src http://archive.canonical.com/ubuntu focal partner
deb http://security.ubuntu.com/ubuntu focal-security main restricted
# deb-src http://security.ubuntu.com/ubuntu focal-security main restricted
deb http://security.ubuntu.com/ubuntu focal-security universe
# deb-src http://security.ubuntu.com/ubuntu focal-security universe
deb http://security.ubuntu.com/ubuntu focal-security multiverse
# deb-src http://security.ubuntu.com/ubuntu focal-security multiverse
# This system was installed using small removable media
# (e.g. netinst, live or single CD). The matching "deb cdrom"
# entries were disabled at the end of the installation process.
# For information about how to configure apt package sources,
# see the sources.list(5) manual.
deb https://dl.winehq.org/wine-builds/ubuntu/focal main
# deb-src https://dl.winehq.org/wine-builds/ubuntu/focal main
deb https://dl.winehq.org/wine-builds/ubuntu/ focal main
# deb-src https://dl.winehq.org/wine-builds/ubuntu/ focal main
-
DiabloGamer
- Level 2
- Posts: 10
- Joined: Sun Apr 25, 2021 6:14 pm
Re: Unable to install Wine on Ubuntu 20.04.2.0
Post
by DiabloGamer » Thu Apr 29, 2021 3:30 pm
OK, I did that and rebooted. Now the error icon at the top right has disappeared so it sounds good. I did the next step as told on your website:
And I am getting stuck again. On your website it says to update the packages then to install one of the following packages. (https://wiki.winehq.org/Ubuntu).
1) I’m confused. Why updating the packages BEFORE installing them??
2) I got a result saying that there are things that can be updated. Do I have to do them? Also, it’s weird because I got a message from the live update about things ready for an update and did it and the sudo command says there are still things to be updated. Another thing, the way the writing is done on Wine’s website is like we do the sudo update command and that’s it then we install one of the 3 packages. But here I get that message about things to be updated. I thought the command was related to the wine stuff. Sorry if it sounds stupid, but those are me very first steps on Linux.
3) If I have to do the update, then how to do it?
I’m including a screen capture of what I got after the sudo apt update command:
Thanks for your help and patience Dimesio
-
dimesio
- Moderator
- Posts: 13143
- Joined: Tue Mar 25, 2008 10:30 pm
Re: Unable to install Wine on Ubuntu 20.04.2.0
Post
by dimesio » Thu Apr 29, 2021 5:18 pm
The sudo apt update command doesn’t install anything; it merely checks the metadata for all the repositories in your /etc/apt/sources.list—that’s how it knows to tell you that there are other packages on your system that have newer versions available. You need to run it whenever you add a new repository, or apt won’t know what’s in it.
To actually upgrade the packages apt has identified as having newer versions, use sudo apt upgrade, which will upgrade everything that can be upgraded. If you only want to upgrade a specific packages, you will have to specify the package name in the command line.
If you need more general help on how to use your package manager, ask on the Ubuntu forum.
-
DiabloGamer
- Level 2
- Posts: 10
- Joined: Sun Apr 25, 2021 6:14 pm
Re: Unable to install Wine on Ubuntu 20.04.2.0
Post
by DiabloGamer » Fri Apr 30, 2021 12:07 pm
OK, I undertsnad. sudo apt update is to check if there’s any update available. And sudo apt upgrade is to update everything at once. I did it and it worked fine. I then installed the stable version and it worked fine.
Last question, at the bottom of the page https://wiki.winehq.org/Ubuntu it says:
Compiling WoW64
Ubuntu’s implementation of Multiarch is still incomplete, so for now you can’t simply install 32-bit and 64-bit libraries alongside each other. If you’re on a 64-bit system, you’ll have to create an isolated environment for installing and building with 32-bit dependencies. See Building Biarch Wine On Ubuntu for detailed instructions for Ubuntu using LXC, and Building Wine for general information.
Do I have to do that? I’m installing Wine so I can play Diablo on Unbuntu.
-
invisible kid
- Level 4
- Posts: 248
- Joined: Tue Dec 24, 2019 3:23 pm
Re: Unable to install Wine on Ubuntu 20.04.2.0
Post
by invisible kid » Wed May 05, 2021 1:03 pm
Do I have to do that? I’m installing Wine so I can play Diablo on Unbuntu.
No. If you are able to install wine via a package manager, and it works, there is no need to build unless you wanted to tweak compile options or modify the source or something similar. The vast majority do not build.
-
AndyTulenko
- Level 1
- Posts: 5
- Joined: Mon May 10, 2021 8:05 pm
Re: Unable to install Wine on Ubuntu 20.04.2.0
Post
by AndyTulenko » Mon May 10, 2021 8:10 pm
I am brand new to Linux. I have a 95% clean install of 20.04 and this thread was helping.
Now I’ve run into the dreaded line 58 error multiple times in a row and I’m stuck there. Is there a simple 1,2,3 step by step for doing this?
I may have run into issues because of the way I was installing things. Would it be better for me to just wipe it out and reinstall 20.04?
-
dimesio
- Moderator
- Posts: 13143
- Joined: Tue Mar 25, 2008 10:30 pm
Re: Unable to install Wine on Ubuntu 20.04.2.0
Post
by dimesio » Tue May 11, 2021 7:32 am
AndyTulenko wrote: ↑Mon May 10, 2021 8:10 pm
I am brand new to Linux. I have a 95% clean install of 20.04 and this thread was helping.
Now I’ve run into the dreaded line 58 error multiple times in a row and I’m stuck there. Is there a simple 1,2,3 step by step for doing this?
If you’re talking about a «Malformed entry» error from apt, that means you have a typo in your /etc/apt/sources.list on the line the error message references and you need to either correct it or delete it. Instructions for how to do that have already been provided in this thread.