Ok, I have this whole new machine on which I just freshly installed Ubuntu 12.10. I'm trying to install node.js by following the instructions on this website. The first time I did that it worked like a charm, but then I had some troubles installing packages because nodejs --version and node --version gave two different results. I thought then that the best idea was to do a rm -rf /usr/var/node or something like that. That resulted in a total mess up of everything.
By trying to call sudo apt-get install nodejs again, I get the following error message:
[...]
Errors were encountered while processing:
/var/cache/apt/archives/nodejs_0.8.26-1chl1~quantal1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
I really tried everything, from apt-autoremove to clean to whatever, I cannot possibly figure out why this is not working anymore. Any ideas?
Thanks
Edit: it's funny how people gives -1 without even reading the question. If these smart alecks think this question is stupid or inappropriate, they could simply write so or help me out, since I'm struggling with this. Also, removed some of the output, since people cannot read until the end of it.
Try install the locales packages, and run dpkg-reconfigure locales to set the locales "en-US" for the system.
Related
Today I turned on my Ubuntu virtual machine and tried to do a project in Python 3.9.4,
but this one used rarfile module. Which is throwing errors.
I know rarfile uses unrar, and I installed both rarfile and unrar.
Tried to type unrar seperately and it works.
I almost spent whole day trying to figure this out.
My question is why does importing rarfile module not work, and how can I fix it.
I also read online it could have something to do with PATH, but I am pretty new to linux and don't know terminology of it and therefore don't know how to try to fix it.
Some information regarding that would probably help if not now, for the future problems regardless if it is connected to this problem or not.
Sorry if I formatted this post poorly, it's my 2nd post on here.
I would do pip install rarfile to make sure it is install
also you may want to do a pip list to make sure its intalled.
Also if python 2 is install then most likly you need to do pip3 install rarfile.
Hello there hope you are all well.
Few days ago I installed ROS on my Windows-10 computer by following the tutorials on their site. I worked with TurtleSim and some other features of ROS without any problem. However when I try to run Gazebo, I get an error saying sdformat.dll is missing. And when I try to run Rviz, I get an error saying image_transport.dll and resource_retriever.dll is missing. I tried updating ROS but it did no good. I asked about this on ROS' official answer site but no one responded. Is there any CMD command or chocolatey feature which I can use to repair missing files? If not, what can I do to resolve this error?
Thank you so much
I'm trying to build a script for linux to help me each time I install linux from scratch.
The Script have to 1.- Add repositories 2.- Install software from those repositories.
Adding repositories are not the problem, the problem is when i try to install software from this repo.
For the Repo:
sudo add-apt-repository -y ppa:webupd8team/java
After that, the script should make an update, so:
sudo apt-get update
It looks simple, but is not, because I receive an error:
The command Update could not be found.
And so on the rest of the softwares
apt-get -y install oracle-java8-installer
The package oracle-java8-installer couldn't be found..
I really don't know what should I do, nothing looks to work, I gave full rigths to the file and so on... always the same error.
But if I run the command apt-get install direct from the terminal, works without problem..
Any help?
actually I wrote a script in windows to use it in future Linux installations, for some reasons it doesn't work as I want it. Thinking it was a command or misspelled words, I search for a solution, wich didn't help anyways.
Debugging my script in a virtual Machine, I found that the script was giving some random errors like '/r' doesn't support and like that. Really weird because after searching in my script for that line code I didn't find it.
With that in mind, I search again for those errors, and found that for some reasons, if you write your code in a Windows maschine, it save it in a crlf type, wich in a Linux system is interpreted really wrong.
A solution of some users was converting the type from CRLF to LF, wich in linux is using the command dos2unix.
dos2unix filename.sh
After making that and runing my script again everything works perfectly.
I am working with this software (rtabmap in Ubuntu 14.04 with ROS Indigo) and I was having some trouble with the installation. So I decided to remove eveything and uninstall it:
apt-get remove rtabmap
apt-get remove ros-indigo-rtabmap
cd rtabmap/build
make uninstall
And late I have removed the whole rtabmap folder.
So now I just run in the console rtabmap and it initiates, it even shows me other options like rtabmap-camera.
My question is, how is this even possible? And how can I locate the damm package in order to remove it?
Note: dpkg does not find it in any way.
So actually I found the answer myself. It turned out that the binary files of rtabmap where written in /usr/local/bin and there were 2 versions of rtabmap. This way the make was taking the incorrect version and was giving me weird errors.
I just removed the binary files and reinstall over eveything again and now it works.
Cheers
A few months back I edited the PostgreSQL version 8.2.19 source code in Ubuntu OS to change the algorithm of the buffer manager in it. I don't remember what I exactly did but I did something wrong (clearly) so now whenever I try to install a new program, I get the following error (even after it installs successfully)
This was after I used the command sudo apt-get install maven to install maven. This happens every time I do a sudo apt-get install <whatever>, the program installs but this comes up:
Errors were encountered while processing:
postgres-xc
E: Sub-process /usr/bin/dpkg returned an error code (1)
I think I messed with some files that affect what happens when a sudo apt-get install is done and I'm trying to get this to go away. I have attached a screenshot as well. Can someone help me?
***I need 10 reputation to post an image so it won't let me post a screenshot so here is the end part of the Maven install*****
Setting up testng (6.8.7-2) ...
Setting up libosgi-compendium-java (4.3.0-1) ...
Setting up libgeronimo-osgi-support-java (1.0-2) ...
Setting up libwagon-java (1.0.0-2ubuntu2) ...
Setting up libgeronimo-jpa-2.0-spec-java (1.1-2) ...
Setting up libmaven2-core-java (2.2.1-14) ...
Setting up libmaven-scm-java (1.3-5) ...
Setting up libplexus-containers1.5-java (1.5.5-6) ...
Setting up libsisu-ioc-java (2.3.0-5) ...
Setting up libaether-java (1.13.1-2) ...
Setting up libwagon2-java (2.5-1) ...
Setting up maven (3.0.5-1) ...
update-alternatives: using /usr/share/maven/bin/mvn to provide /usr/bin/mvn (mvn) in auto mode
Errors were encountered while processing:
postgres-xc
E: Sub-process /usr/bin/dpkg returned an error code (1)
root#r-HP-Pavilion-g6-Notebook-PC:/home/r# exit
exit
r#r-HP-Pavilion-g6-Notebook-PC:~$
Sorry for the late post, I figured this out around a year ago. I used the purge method in Ubuntu to completely unintall postgres. It stopped the error.