Linux an error occurred

unrar: An error occurred while accessing the archive

I can’t seem to unrar files. When I right-click and hit «extract here» it throws up an error message: «An error occurred while accessing the archive». I have unrar installed. I also tried 7-zip rar. No luck. Can someone help me?

2 Answers 2

sudo apt-get update sudo apt-get install unrar 
unrar x -r /path/to/rarfile.rar 

I’m still having issues. The first rar I tried to unrar seemed to extract OK but then I didn’t see any files extracted into the folder. The second one I tried to unrar threw up more error messages. Here’s a pastebin of my terminal. pastebin.com/z5dVdGcy

My case was because the split archive files where password protected but Ubuntu default unarchiver did not asked for password and failed to extract the files.

First of all you should install the right command:

sudo apt-get install unrar 

In case you can’t do that, download directly the packet from this link

Than untar the package with:

So now, the 2 commands rar and unrar can found inside the sub-directory rar so:

cd rar #with this command you move inside the directory ./unrar #with this command you launch the unrar command 

Now you have to copy the 2 commands inside /usr/local/bin so:

After do that you will be able to use cmd in these ways.

Unrar file inside the current directory:

List what is inside the rar:

You can find all this infomation on this guide.

Источник

Error while installing applications — «An error occurred while loading the archive.»

I’m a complete novice to Ubuntu and like it a lot from first impression but I haven’t gotten very far since getting it up and running several days ago. I loaded 12.10 on an old e-Machine that someone threw in the trash and everything seems to be running OK except when I go to install any software (whether CD or downloaded from the Internet) I get the following message:

Which command do you use to install? What do you want to install? Please post the full error message.

1 Answer 1

It seems that you are trying to run Windows programs on Linux. Linux has its own set of software and cannot run Windows .exe files to install any software. Instead, software must either be installed from original developer’s code, called source code, or the package manager must be used. The Ubuntu Software Center is the default package manager. You can install many different apps with that. A high percentage of the problems that new users have with Ubuntu relates to getting software, such as hardware drivers, to work.

Читайте также:  Manjaro linux тема mac os

Here are some links that you may find useful and will explain how to get started with Ubuntu:

  • Ubuntu Desktop Guide: https://help.ubuntu.com/12.10/ubuntu-help/index.html
  • Adding and Removing Software: https://help.ubuntu.com/12.10/ubuntu-help/shell-overview.html#addremove
  • A thorough explanation of how software management works in Ubuntu: (essential reading for any Ubuntu beginner) https://help.ubuntu.com/community/InstallingSoftware
  • Installing Windows programs on Linux using WINE: http://www.howtogeek.com/105271/how-to-run-windows-software-on-ubuntu-with-wine/

I hope things go well for you using Ubuntu!

Thank you for your response. You confirmed my assumptions that I would not be able to execute Windows program on Unix. I guess I just have to get used to the Unix programs.

Источник

Thread: an error occurred please run package manager

luger2 is offlineFirst Cup of Ubuntu

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

Bashing-om is offlineUbuntu Member

Join Date Jul 2010 Location ozarks, Arkansas, USA Beans 14,051 —> Beans 14,051 Distro Xubuntu 22.04 Jammy Jellyfish

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:

cat /etc/apt/sources.list.d/google-chrome.list

luger2 is offlineFirst Cup of Ubuntu

Re: an error occurred please run package manager

deadflowr is offlineRobot Pirate Ghost

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.

sudo sed -i 's/deb h/#deb h/g' /etc/apt/sources.list.d/google-chrome.list

Splat Double Splat Triple Splat
Earn Your Keep
Don’t mind me, I’m only passing through.
Once in a blue moon, I’m actually helpful .

luger2 is offlineFirst Cup of Ubuntu

Re: an error occurred please run package manager

Bashing-om is offlineUbuntu Member

Join Date Jul 2010 Location ozarks, Arkansas, USA Beans 14,051 —> Beans 14,051 Distro Xubuntu 22.04 Jammy Jellyfish

Re: an error occurred please run package manager

QuoteOriginally Posted by luger2 View Post

Читайте также:  Wifi mercusys mu6h драйвер linux

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 .

luger2 is offlineFirst Cup of Ubuntu

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.)’.

deadflowr is offlineRobot Pirate Ghost

Re: an error occurred please run package manager

QuoteOriginally Posted by Bashing-om View Post

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 .

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.

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.)’.

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 above

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 this

#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
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 main

then 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.

Читайте также:  Softether vpn for linux

Splat Double Splat Triple Splat
Earn Your Keep
Don’t mind me, I’m only passing through.
Once in a blue moon, I’m actually helpful .

Источник

an error occurred while mounting /boot/efi

I’m a new Ubuntu user. I have UEFI system and after few tries I succeeded to install (via usb), the latest version of ubuntu. Now when I’m trying to boot from grub i get this message:

an error occurred while mounting /boot/efi 

2 Answers 2

Type the following commands:

grep efi /etc/fstab sudo blkid | grep fat 

The first command will return information on the EFI System Partition (ESP), as recorded in your /etc/fstab file, which controls automatically-mounted partitions. The second command returns information on all FAT partitions on your computer. The ESP is supposed to be a FAT partition, so you should see some correlations. For instance, here’s what I get when I issue these commands on one of my systems:

$ grep efi /etc/fstab # /boot/efi was on /dev/sda2 during installation UUID=502D-EB63 /boot/efi vfat defaults 0 1 $ sudo blkid | grep fat /dev/sda2: SEC_TYPE="msdos" LABEL="ESP_FAT16" UUID="502D-EB63" TYPE="vfat" 

Note that some systems might return information on two or more FAT partitions from blkid . In such cases, you’ll need to figure out which one is your ESP by examining the partition table with gdisk , parted , GParted, or some other partitioning tool. There may be other complications, too, on some systems.

From here, you can look for problems. Pay particular attention to the UUID= values in both outputs. If they don’t match, that’s the source of the problem. If this is the case, editing /etc/fstab so that it refers to the ESP by its correct filesystem «UUID» (really just a serial number for FAT) should get things working.

Another possible problem won’t show up as a discrepancy in the analysis you’ve just performed, since it’s a matter of a filesystem needing repair. You can do this with the dosfsck utility:

You must pass it the device filename associated with the ESP — /dev/sda2 in this example, as revealed by the blkid output. After making this repair, the problem should go away, with the caveat that very serious filesystem damage may require more drastic measures, such as backing up the ESP, creating a fresh FAT filesystem on the partition, restoring the data, and adjusting /etc/fstab to use the new «UUID» value.

One more point along these lines: If you’re dual-booting with Windows 8, it includes a «fast startup» feature that is basically just a suspend-to-disk feature. Sharing partitions between Windows and Linux with this feature active is almost certain to lead to problems, and I’ve heard of the ESP being affected by this. Thus, if you’re dual-booting with Windows 8, you should disable the fast startup feature. This page describes how to do this in detail.

Источник

Оцените статью
Adblock
detector