I get this error when I run pip freeze:
Warning: cannot find svn location for apsw==3.7.17-r1
...
## FIXME: could not find svn URL in dependency_links for this package:
apsw==3.7.17-r1
What does this mean? And how can I fix it?
I get this error when I run pip freeze:
Warning: cannot find svn location for apsw==3.7.17-r1
...
## FIXME: could not find svn URL in dependency_links for this package:
apsw==3.7.17-r1
What does this mean? And how can I fix it?
I aliased rm
to a echo use del or full path to rm
to save myself from accidental rm (just lost my $HOME
to it).
But sudo rm
still uses /bin/rm
. How can I alias it to also print same message?
PS: del
is alias to trash-put
I was trying to make my USB drive bootable to install Arch (I used dd
to write Arch ISO to the USB Drive) but the process was stopped half-way. The drive stopped responding so I tried sudo dd if=/dev/zero of=/dev/sdb bs=512 count=1
and it did work, in a way, now I get only 2GB (its of total 4GB).
Before writing arch's ISO, the drive was MBR, but after the failed attempt Gparted said that it thinks its GPT. I recreated the partition table choosing MSDOS in menu (is it same as MBR?) and choose ext2
file system.
Now it works on Ubuntu but get this when I unmount it:
Error ejecting /dev/sdb: Command-line `eject "/dev/sdb"' exited with non-zero exit
status 1: eject: tried to use `/dev/sdb' as device name but it is no block device
eject: tried to use `.//dev/sdb' as device name but it is no block device
eject: unable to find or open device for: `/dev/sdb'
Something like this is also happening to my External HDD (I keep messing up, I know!). It also says 2GB. I think dd
messed it up.
How can I get the lost space back? I would like a general approach to change partiton to MBR and and reformat my drive (USB and Ext HDD) completely. No Data on any of USB Drives is important.
I use ♪
character in my zsh
theme's for prompt. But in tmux, my prompt was behaving weirdly, showing extra spaces, like this:
♪ ~ I can type from here
♪ ~ Instead of here like in zsh, and sometimes when I do stuff like cd
♪ ~ cd ~
♪ ~ cdcd /
♪ ~ ^^These 2 chars just show up but are not actually part of command and not delete-able
I recently discovered that I can set tmux encoding to utf8 by set-window-option -g utf8 on
. Doing that, the space problem was gone but ♪
character changed to _
. How can I get my ♪
back in tmux
?
My zsh-theme:
PROMPT='%{$fg_bold[cyan]%} ♪ %{$fg[blue]%}%c%{$fg_bold[blue]%}$(git_prompt_info)$(git_remote_status)%{$fg_bold[blue]%} % %{$reset_color%}'
How do I stop my local apache server?
/etc/init.d/apache2
and service apache2
give only 3 options -- restart
, start
and status
I rebooted my syetem and now sudo /etc/inid.d/apache stop
works but doesn't give the stop
option on TAB
httpd
was missing so I did sudo ln -s /usr/sbin/apachectl /etc/init.d/httpd
-- read it on some forum
The httpd service now gives start
and status
option (Again, no stop
)
doing sudo /etc/init.d/httpd status
says
Looking up localhost
Making HTTP connection to localhost
Alert!: Unable to connect to remote host.
lynx: Can't access startfile http://localhost/server-status
'www-browser -dump http://localhost:80/server-status' failed.
Maybe you need to install a package providing www-browser or you
need to adjust the APACHE_LYNX variable in /etc/apache2/envvars
I did install lynx just before making the link by sudo apt-get install lynx
Why is only the stop
missing? This is just plain weird ...
I installed cinnamon a while ago and didn't like it so I removed it (followed some post online to remove it completely as apt-get autoremove cinnamon
wasn't very successful).
After removing it, I was still left with gnome
and gnome 2D
Today I reinstalled it (apt-get install cinnamon
) and I logged in using cinnamon and as son as I so much as pressed a key or clicked an icon, it crashed. I had to shut down using a virtual console.
How can I fix this? I would prefer removing Cinnamon + Gnome + Gnome 2D completely and installing cinnamon again.
I just created alias rm="rm -I"
to prevent from accidental rm
command.
-I prompt once before removing more than three files, or when removing recursively.
Less intrusive than -i, while still giving protection against most mistakes
But it doesn't work. I don't get any prompt when I use rm -rf
Yesterday I installed cinnamon
and nemo
but didn't like it (don't ask me why).
I am using unity now and I has no reason to remove cinnamon but now when I launch nautilus from terminal, I get this error:
Initializing nautilus-dropbox 1.4.0
Nautilus-Share-Message: Called "net usershare info" but it failed: 'net usershare'
returned error 255: info_fn: file /var/lib/samba/usershares/files is not a
well formed usershare file.
info_fn: Error was Path is not a directory.
This is the first time I am seeing this error, and I think removing cinnamon & nemo will solve the problem (But I want to remove it anyway).
So, sudo apt-get autoremove cinnamon nemo
shows that only ~7MB space will be freed, while ~70MB was downloaded. Where's the rest of space? And how do I solve that nautilus problem?
I use zsh theme intheloops
. The theme looks like this when no virtual env. is active
-- an empty line --
[sourabh@skynet] ~/Code/django_apps/cope (master) ⚡
❯
and when an env. is active,
(env name)
[sourabh@skynet] ~/Code/django_apps/cope (master) ⚡
❯
Can I make it look like this when some virtualenv is active
-- empty line --
(env name) [sourabh@skynet] ~/Code/django_apps/cope (master) ⚡
❯
.zsh-theme
file
local return_status="%{$fg[red]%}%(?..⏎)%{$reset_color%}"
local host_color="green"
if [ -n "$SSH_CLIENT" ]; then
local host_color="red"
fi
PROMPT='
%{$fg_bold[grey]%}[%{$reset_color%}%{$fg_bold[${host_color}]%}%n@%m%{$reset_color%}%{$fg_bold[grey]%}]%{$reset_color%} %{$fg_bold[blue]%}%10c%{$reset_color%} $(git_prompt_info) $(git_remote_status)
%{$fg_bold[cyan]%}❯%{$reset_color%} '
RPROMPT='${return_status}%{$reset_color%}'
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[yellow]%}(%{$fg[yellow]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[yellow]%}) %{$fg[pink]%}⚡%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[grey]%})"
ZSH_THEME_GIT_PROMPT_BEHIND_REMOTE="%{$fg_bold[magenta]%}↓%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_AHEAD_REMOTE="%{$fg_bold[magenta]%}↑%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_DIVERGED_REMOTE="%{$fg_bold[magenta]%}↕%{$reset_color%}"
man apt-get
says:
autoremove is used to remove packages that were automatically installed to satisfy dependencies for other packages and are now no longer needed.
So why is it not automatically called every time I remove package?
Essentially, my question is: Why use remove <pkg name>
and not autoremove <pkg name>
to remove packages.
PS: This won't break dependency as said here
I was getting Update information is outdated
alert. I tried sudo apt-get update
and got these errors:
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/raring-security/Release.gpg Cannot initiate the connection to security.ubuntu.com:80 (2001:67c:1562::13). - connect (101: Network is unreachable) [IP: 2001:67c:1562::13 80]
W: Failed to fetch http://repository.spotify.com/dists/stable/Release.gpg Something wicked happened resolving 'repository.spotify.com:http' (-11 - System error)
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/raring-security/main/i18n/Translation-en_IN Cannot initiate the connection to security.ubuntu.com:80 (2001:67c:1562::13). - connect (101: Network is unreachable) [IP: 2001:67c:1562::13 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/raring-security/main/i18n/Translation-en Cannot initiate the connection to security.ubuntu.com:80 (2001:67c:1562::13). - connect (101: Network is unreachable) [IP: 2001:67c:1562::13 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/raring-security/multiverse/i18n/Translation-en_IN Cannot initiate the connection to security.ubuntu.com:80 (2001:67c:1562::13). - connect (101: Network is unreachable) [IP: 2001:67c:1562::13 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/raring-security/multiverse/i18n/Translation-en Cannot initiate the connection to security.ubuntu.com:80 (2001:67c:1562::13). - connect (101: Network is unreachable) [IP: 2001:67c:1562::13 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/raring-security/restricted/i18n/Translation-en_IN Cannot initiate the connection to security.ubuntu.com:80 (2001:67c:1562::13). - connect (101: Network is unreachable) [IP: 2001:67c:1562::13 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/raring-security/restricted/i18n/Translation-en Cannot initiate the connection to security.ubuntu.com:80 (2001:67c:1562::13). - connect (101: Network is unreachable) [IP: 2001:67c:1562::13 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/raring-security/universe/i18n/Translation-en_IN Cannot initiate the connection to security.ubuntu.com:80 (2001:67c:1562::13). - connect (101: Network is unreachable) [IP: 2001:67c:1562::13 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/raring-security/universe/i18n/Translation-en Cannot initiate the connection to security.ubuntu.com:80 (2001:67c:1562::13). - connect (101: Network is unreachable) [IP: 2001:67c:1562::13 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/raring-security/universe/source/Sources Cannot initiate the connection to security.ubuntu.com:80 (2001:67c:1562::13). - connect (101: Network is unreachable) [IP: 2001:67c:1562::13 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/raring-security/main/source/Sources Cannot initiate the connection to security.ubuntu.com:80 (2001:67c:1562::13). - connect (101: Network is unreachable) [IP: 2001:67c:1562::13 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/raring-security/multiverse/source/Sources Cannot initiate the connection to security.ubuntu.com:80 (2001:67c:1562::13). - connect (101: Network is unreachable) [IP: 2001:67c:1562::13 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/raring-security/restricted/source/Sources Cannot initiate the connection to security.ubuntu.com:80 (2001:67c:1562::13). - connect (101: Network is unreachable) [IP: 2001:67c:1562::13 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/raring-security/main/binary-i386/Packages Cannot initiate the connection to security.ubuntu.com:80 (2001:67c:1562::13). - connect (101: Network is unreachable) [IP: 2001:67c:1562::13 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/raring-security/restricted/binary-i386/Packages Cannot initiate the connection to security.ubuntu.com:80 (2001:67c:1562::13). - connect (101: Network is unreachable) [IP: 2001:67c:1562::13 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/raring-security/universe/binary-i386/Packages Cannot initiate the connection to security.ubuntu.com:80 (2001:67c:1562::13). - connect (101: Network is unreachable) [IP: 2001:67c:1562::13 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/raring-security/multiverse/binary-i386/Packages Cannot initiate the connection to security.ubuntu.com:80 (2001:67c:1562::13). - connect (101: Network is unreachable) [IP: 2001:67c:1562::13 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
I followed this thread's top answer and it fixed the problem.
But someone please explain what was the problem and how did it got fixed?
My Bluetooth is not working in Ubuntu 13.04. I am unable to turn it on and also, Bluetooth icon doesn't show up in the top bar.
I asked about this on #ubuntu IRC and they said that I am missing the proprietary drivers for it. There is nothing under Additional Drivers in Software and Updates
Bluetooth does work 'Try Ubuntu mode' when I boot Ubuntu from DVD/USB.
How can I get the required drivers?
I tried this thread but it didn't work.
How can I disable super + s
which previews workspaces
My Seagate 500 GB external HDD stopped working few days ago for unknown reasons. I don't really care about the data on it anymore. I just want it to work properly again but I cant format it in Gparted or Disk Utility. In fact, I can't even see my drive in both places. I get this error when I connect it via USB:
Error mounting /dev/sdb1 at /media/sourabh/Backup: Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,dmask=0077,fmask=0177" "/dev/sdb1" "/media/sourabh/Backup"' exited with non-zero exit status 13: The disk contains an unclean file system (0, 0).
The file system wasn't safely closed on Windows. Fixing.
ntfs_attr_pread_i: ntfs_pread failed: Input/output error
Failed to read NTFS $Bitmap: Input/output error
NTFS is either inconsistent, or there is a hardware fault, or it's a SoftRAID/FakeRAID hardware. In the first case run chkdsk /f on Windows then reboot into Windows twice. The usage of the /f parameter is very important! If the device is a SoftRAID/FakeRAID then first activate it and mount a different device under the /dev/mapper/ directory, (e.g. /dev/mapper/nvidia_eahaabcc1). Please see the 'dmraid' documentation for more details.
Failed to sync device /dev/sdb1: Input/output error
Failed to close volume /dev/sdb1: Input/output error
How can I force format this drive?
I am dual-booting Ubuntu and Win 8.
When I installed Ubuntu, I forgot to format a partition of 90GB.
Now when I tried to create a partition (in gparted), I get this error
It is not possible to create more than 4 primary partitions
If you want more partitions you should first create an extended partition. Such a partition can contain other partitions. Because an extended partition is also a primary partition it might be necessary to remove a primary partition first.
Here's a Screen Shot:
sda1 is that small space that windows loves to create for reasons unclear to me
sda2 and sda4 are windows 8 drives C: and E:
sda3 is my linux drive
the last unallocated 10.2MB? I have no idea where that came from.
But why is Ubuntu counting Window's drives as primary?
But more importantly, how can I get that 90GB back, Win8 Disk Management also gives some error :(
How can I rename my computer? Renaming it in /etc/hosts
and /etc/hostname
does something weird. Before renaming it, I am able to open these files via sublime using
sudo subl /etc/hosts
but when I rename my Computer (using nano) and open any of these files using subl
, I get this message:
No protocol specified
(sublime_text:20071): Gtk-WARNING **: cannot open display: :0.0
So I guess renaming in the above files is not the only thing I have to do.
PS: If I rename using sublime, after renaming one of the files, I get same message when I try to open other file