Stopping Application From Being Upgraded

Good day. I know the commands Code:
sudo apt-mark hold package_name

is used to prevent applications from being upgraded. But what do you use for applications that were manually installed and not from the repository?

Thanks!


Similar Content



"New Software Can't Be Installed" Ubuntu 14.04

Hi,

This problem seems to have some common solutions, none of which have worked for me so far.

I get this when opening software center in the past few hours:

"New software can't be installed, because there is a problem with the software currently installed. Do you want to repair this problem now?"

Clicking "repair" several times hasn't fixed it, nor have commands like:

Code:
sudo apt-get -f install

and

Code:
sudo apt-get upgrade

Though these have been mentioned elsewhere as solutions for a few people.

My OS otherwise seems to run pretty normally, as far as someone as green as me can tell.

Any fixes for this? I'd hate to format again, especially since my complicated Steam setup takes so long to complete. Thanks!

Why Should I Always Use Chmod When Not As A Root User

System Info:

I have normal user in CentOS 7 whose name is "mostafa" (the name of the account).

I naturally have another user called root with all privileges. User "mostafa" is put into sudoers file, too.

The OS is installed in VmWare, so the system is all mine.

Problem:

Now I create a file with touch file.sh and put a command in it, but when I want to run it with Code:
sudo ./file.sh

, an error is shown that the command Code:
./file.sh

does not exist. But if I Code:
 sudo chmod 777 ./file.sh

then it gets run. My question is that, why should I use Code:
chmod 777

when I myself have created the file, and I am in sudoers.

Can anyone explain me why shuold I still use Code:
sudo chmod 777

when the creator of the file is me.

Permission Denied When Trying To Execute An Application On A SD Card

Hi,
I made some little applications with qt creator and i wanted to run them on an embedded linux board (linux 2.6.24). To transfer the files i use a SD card. If i move the applications to "/bin" after having mounted the SD card and then "chmod a+x" them then i have no problem running them.
But if i mount the SD card and try to run the applications directly in the folder where i mount it i have an error : "Permission denied". Also when using the command "ls" i notice that if i keep the files in the mounting folder and try to "chmod a+x" them, the modification don't happen. They stay "greyed" and don't go "green". (I don't know if this color code is a standart for linux terminal but maybe this could help you understand the problem).
When mounting the SD card i use the command :
Code:
mount -t vfat /dev/mmcblk0p1 /mnt/SD

So the files are located in /mnt/SD.

Am i missing something or is it not possible to run something like that ?

EDIT :
I tried "mount -t vfat -o umask=0000 /dev/mmcblk0p1 /mnt/SD" to chnage how i am mounting the SD card.

Still "Permission Denied".

With "ls -l" i can see that the permissions are staying :
-rw-rw-rw-

Even if i try something like "chmod 777".

It seems to be a problem related to the fact that the sd card is formated as fat32 but it must stay like that.

VPN Mullvad Client Won't Install Proper -dependency Problems(?)-

Hello all

I'm having trouble with installing the Mullvad VPN client on my computer. The configuration files work fine and there is a connection but the client just won't work (there is a icon in the applications but when clicking on it, password is asked and then nothing happens). Using Debian Wheezy 7.
I'm in contact with Mullvad but we haven't made any progress yet, and it's weekend now.

I tried a couple of thing but this is where i'm now:

- Fresh installed system.

→ Going to Downloads map in terminal
→ login as root
→ trying to install Mullvad by dpkg -i mullvad_48-1_all.deb
→ seeing error installing Mullvad
→ apt-get install -f
→ installing “mullvad depends on packages”
apt-get install pytho
apt-get install python-wxgtk2.8
apt-get install python-appindicator
→ trying to install Mullvad by dpkg -i mullvad_48-1_all.deb
→ seeing problem(?)
“ dpkg: dependency problems prevent configuration of mullvad:
mullvad depends on python:any (>= 2.7.1-0ubuntu2).

dpkg: error processing mullvad (--install):
dependency problems - leaving unconfigured “ (what is this?)
→ trying to install python_2.7.3-4+deb7u1_all.deb by dpkg -i python_2.7.3-4+deb7u1_all.deb
→ then: apt-get install -f
→ trying to install Mullvad: dpkg -i mullvad_48-1_all.deb
→ still not working

Code:
userone@debianuser:~$ cd ~/Downloads
userone@debianuser:~/Downloads$ su
Password: 
root@debianuser:/home/userone/Downloads# dpkg -i mullvad_48-1_all.deb
Selecting previously unselected package mullvad.
(Reading database ... 139936 files and directories currently installed.)
Unpacking mullvad (from mullvad_48-1_all.deb) ...
dpkg: dependency problems prevent configuration of mullvad:
 mullvad depends on python:any (>= 2.7.1-0ubuntu2).
 mullvad depends on python-wxgtk2.8; however:
  Package python-wxgtk2.8 is not installed.
 mullvad depends on python-appindicator; however:
  Package python-appindicator is not installed.

dpkg: error processing mullvad (--install):
 dependency problems - leaving unconfigured
Processing triggers for desktop-file-utils ...
Processing triggers for gnome-menus ...
Processing triggers for hicolor-icon-theme ...
Errors were encountered while processing:
 mullvad
root@debianuser:/home/userone/Downloads# apt-get install -f
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following packages will be REMOVED:
  mullvad
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 627 kB disk space will be freed.
Do you want to continue [Y/n]? Y
(Reading database ... 139987 files and directories currently installed.)
Removing mullvad ...
Processing triggers for hicolor-icon-theme ...
Processing triggers for desktop-file-utils ...
Processing triggers for gnome-menus ...
root@debianuser:/home/userone/Downloads# apt-get install python
Reading package lists... Done
Building dependency tree       
Reading state information... Done
python is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@debianuser:/home/userone/Downloads# apt-get install python-wxgtk2.8
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  libwxbase2.8-0 libwxgtk2.8-0 python-wxversion
Suggested packages:
  libgnomeprintui2.2-0 wx2.8-doc wx2.8-examples editra
The following NEW packages will be installed:
  libwxbase2.8-0 libwxgtk2.8-0 python-wxgtk2.8 python-wxversion
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 12.8 MB of archives.
After this operation, 46.1 MB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Get:1 http://ftp.us.debian.org/debian/ wheezy/main libwxbase2.8-0 amd64 2.8.12.1-12 [678 kB]
Get:2 http://ftp.us.debian.org/debian/ wheezy/main libwxgtk2.8-0 amd64 2.8.12.1-12 [3,411 kB]
Get:3 http://ftp.us.debian.org/debian/ wheezy/main python-wxversion all 2.8.12.1-12 [91.8 kB]
Get:4 http://ftp.us.debian.org/debian/ wheezy/main python-wxgtk2.8 amd64 2.8.12.1-12 [8,579 kB]
Fetched 12.8 MB in 20s (608 kB/s)                                              
Selecting previously unselected package libwxbase2.8-0:amd64.
(Reading database ... 139936 files and directories currently installed.)
Unpacking libwxbase2.8-0:amd64 (from .../libwxbase2.8-0_2.8.12.1-12_amd64.deb) ...
Selecting previously unselected package libwxgtk2.8-0:amd64.
Unpacking libwxgtk2.8-0:amd64 (from .../libwxgtk2.8-0_2.8.12.1-12_amd64.deb) ...
Selecting previously unselected package python-wxversion.
Unpacking python-wxversion (from .../python-wxversion_2.8.12.1-12_all.deb) ...
Selecting previously unselected package python-wxgtk2.8.
Unpacking python-wxgtk2.8 (from .../python-wxgtk2.8_2.8.12.1-12_amd64.deb) ...
Setting up libwxbase2.8-0:amd64 (2.8.12.1-12) ...
Setting up libwxgtk2.8-0:amd64 (2.8.12.1-12) ...
Setting up python-wxversion (2.8.12.1-12) ...
Setting up python-wxgtk2.8 (2.8.12.1-12) ...
update-alternatives: using /usr/lib/wx/python/wx2.8.pth to provide /usr/lib/wx/python/wx.pth (wx.pth) in auto mode
root@debianuser:/home/userone/Downloads# apt-get install python-appindicator
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  indicator-application libappindicator1 libappindicator3-1 libdbusmenu-glib4
  libdbusmenu-gtk3-4 libdbusmenu-gtk4 libindicator3-7 libindicator7
The following NEW packages will be installed:
  indicator-application libappindicator1 libappindicator3-1 libdbusmenu-glib4
  libdbusmenu-gtk3-4 libdbusmenu-gtk4 libindicator3-7 libindicator7
  python-appindicator
0 upgraded, 9 newly installed, 0 to remove and 0 not upgraded.
Need to get 632 kB of archives.
After this operation, 1,392 kB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Get:1 http://ftp.us.debian.org/debian/ wheezy/main libdbusmenu-glib4 amd64 0.6.2-1 [109 kB]
Get:2 http://ftp.us.debian.org/debian/ wheezy/main libdbusmenu-gtk3-4 amd64 0.6.2-1 [95.0 kB]
Get:3 http://ftp.us.debian.org/debian/ wheezy/main libdbusmenu-gtk4 amd64 0.6.2-1 [95.0 kB]
Get:4 http://ftp.us.debian.org/debian/ wheezy/main libindicator3-7 amd64 0.5.0-1 [56.6 kB]
Get:5 http://ftp.us.debian.org/debian/ wheezy/main libappindicator3-1 amd64 0.4.92-2 [56.1 kB]
Get:6 http://ftp.us.debian.org/debian/ wheezy/main indicator-application amd64 0.5.0-1 [62.4 kB]
Get:7 http://ftp.us.debian.org/debian/ wheezy/main libindicator7 amd64 0.5.0-1 [56.6 kB]
Get:8 http://ftp.us.debian.org/debian/ wheezy/main libappindicator1 amd64 0.4.92-2 [56.1 kB]
Get:9 http://ftp.us.debian.org/debian/ wheezy/main python-appindicator amd64 0.4.92-2 [45.3 kB]
Fetched 632 kB in 2s (216 kB/s)               
Selecting previously unselected package libdbusmenu-glib4:amd64.
(Reading database ... 141598 files and directories currently installed.)
Unpacking libdbusmenu-glib4:amd64 (from .../libdbusmenu-glib4_0.6.2-1_amd64.deb) ...
Selecting previously unselected package libdbusmenu-gtk3-4:amd64.
Unpacking libdbusmenu-gtk3-4:amd64 (from .../libdbusmenu-gtk3-4_0.6.2-1_amd64.deb) ...
Selecting previously unselected package libdbusmenu-gtk4:amd64.
Unpacking libdbusmenu-gtk4:amd64 (from .../libdbusmenu-gtk4_0.6.2-1_amd64.deb) ...
Selecting previously unselected package libindicator3-7.
Unpacking libindicator3-7 (from .../libindicator3-7_0.5.0-1_amd64.deb) ...
Selecting previously unselected package libappindicator3-1.
Unpacking libappindicator3-1 (from .../libappindicator3-1_0.4.92-2_amd64.deb) ...
Selecting previously unselected package indicator-application.
Unpacking indicator-application (from .../indicator-application_0.5.0-1_amd64.deb) ...
Selecting previously unselected package libindicator7.
Unpacking libindicator7 (from .../libindicator7_0.5.0-1_amd64.deb) ...
Selecting previously unselected package libappindicator1.
Unpacking libappindicator1 (from .../libappindicator1_0.4.92-2_amd64.deb) ...
Selecting previously unselected package python-appindicator.
Unpacking python-appindicator (from .../python-appindicator_0.4.92-2_amd64.deb) ...
Setting up libdbusmenu-glib4:amd64 (0.6.2-1) ...
Setting up libdbusmenu-gtk3-4:amd64 (0.6.2-1) ...
Setting up libdbusmenu-gtk4:amd64 (0.6.2-1) ...
Setting up libindicator3-7 (0.5.0-1) ...
Setting up libappindicator3-1 (0.4.92-2) ...
Setting up indicator-application (0.5.0-1) ...
Setting up libindicator7 (0.5.0-1) ...
Setting up libappindicator1 (0.4.92-2) ...
Setting up python-appindicator (0.4.92-2) ...
root@debianuser:/home/userone/Downloads# dpkg -i mullvad_48-1_all.deb
Selecting previously unselected package mullvad.
(Reading database ... 141685 files and directories currently installed.)
Unpacking mullvad (from mullvad_48-1_all.deb) ...
dpkg: dependency problems prevent configuration of mullvad:
 mullvad depends on python:any (>= 2.7.1-0ubuntu2).

dpkg: error processing mullvad (--install):
 dependency problems - leaving unconfigured
Processing triggers for desktop-file-utils ...
Processing triggers for gnome-menus ...
Processing triggers for hicolor-icon-theme ...
Errors were encountered while processing:
 mullvad

root@debianuser:/home/userone/Downloads# dpkg -i python_2.7.3-4+deb7u1_all.deb
(Reading database ... 141737 files and directories currently installed.)
Preparing to replace python 2.7.3-4+deb7u1 (using python_2.7.3-4+deb7u1_all.deb) ...
Unpacking replacement python ...
Setting up python (2.7.3-4+deb7u1) ...
Processing triggers for man-db ...
root@debianuser:/home/userone/Downloads# apt-get install -f
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following packages will be REMOVED:
  mullvad
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 627 kB disk space will be freed.
Do you want to continue [Y/n]? Y
(Reading database ... 141736 files and directories currently installed.)
Removing mullvad ...
Processing triggers for hicolor-icon-theme ...
Processing triggers for desktop-file-utils ...
Processing triggers for gnome-menus ...
root@debianuser:/home/userone/Downloads# dpkg -i mullvad_48-1_all.deb 
Selecting previously unselected package mullvad.
(Reading database ... 141685 files and directories currently installed.)
Unpacking mullvad (from mullvad_48-1_all.deb) ...
dpkg: dependency problems prevent configuration of mullvad:
 mullvad depends on python:any (>= 2.7.1-0ubuntu2).

dpkg: error processing mullvad (--install):
 dependency problems - leaving unconfigured
Processing triggers for desktop-file-utils ...
Processing triggers for gnome-menus ...
Processing triggers for hicolor-icon-theme ...
Errors were encountered while processing:
 mullvad
root@debianuser:/home/userone/Downloads#


I found this link about "Package has a Depends on python:any (>= 2.7.1-0ubuntu2)" https://qa.debian.org/debcheck.php?dist ... thon-gdata
It says : Package has a Depends on python:any (>= 2.7.1-0ubuntu2) which cannot be satisfied on amd64.
What does this mean for me?

I checked command # python -V The output is:
Code:
Python 2.7.3

Write Permissions To External Drive

I have an external disk but I can only write to it using sudo, not as my normal user.

The commands I've issued a
Code:
sudo mkdir /media/USBSSD
sudo mount -t auto /dev/sda1 /media/USBSSD
sudo chmod 777 /media/USBSSD
sudo mkdir /media/USBSSD/share

How can I set it up so that other users can write to it?

Can Confirmation Be Bypassed In CLI While Installing Software Or Upgrading?

I don't know why I want this, but is there a way the Code:
sudo aptitude install <package>

or Code:
sudo aptitude upgrade

command could bypass the confirmation stage? It's always occurred to me shouldn't there be some command parameter for install/upgrade that does the work?

Let me give an example. Suppose I want to install Variety, the wallpaper changing application. Now, I know that I want to install the software with all the dependencies it requires to install/run - the entire package. So, isn't it obvious that I would press Y when aptitude shows the info what it's going to download/install and asks for permission?

I can't, however, imagine scenarios when seeing that information I'd change my mind and press N to abort the install/upgrade procedure.

Ubuntu Directories

Hi there. I have Ubuntu 14.04 installed. Actually I have been doing a lot of work in this OS for about a year. The thing I cannot still comprehend is how to find files I installed. In this particular case I need glut.h for g++ compiler. So I go here, do this command;

Code:
sudo apt-get install freeglut3-dev

And find out that I already have the newest version (which I have suspected since I recall installing it).

So, the next step is to find the glut.h file and reference it with #include command. I cannot find it anywhere. This website says it has to be he

Code:
/usr/lib/x86_64-linux-gnu/libglut*

Why's the asterisk? Is it a footnote or part of the code?

I don't seem to have /usr/ directory. I cannot find it anywhere.

How does Ubuntu directory work?

Thanks, - A.

SIOCADDRT Error And Two Gateway For Same Destination When I Use Pptp?

Before I use Code:
pppd call

Code:
$ route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         192.168.1.1     0.0.0.0         UG    1024   0        0 wlp8s0
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 wlp8s0

And then I call the code
server: 50.117.*.*
Code:
	sudo pppd call shayu13
	sudo route add -net 0.0.0.0 dev ppp0

I get the error :
Quote:
SIOCADDRT: Network is down
I must change the code by adding the sleep code.
Code:
	sudo pppd call shayu13
	sleep 15
	sudo route add -net 0.0.0.0 dev ppp0

Why? Thanks

And when I look the route tables:
Code:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         0.0.0.0         0.0.0.0         U     0      0        0 ppp0
0.0.0.0         192.168.1.1     0.0.0.0         UG    1024   0        0 wlp8s0
50.117.**.**  192.168.1.1     255.255.255.255 UGH   0      0        0 wlp8s0
172.16.**.**     0.0.0.0         255.255.255.255 UH    0      0        0 ppp0
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 wlp8s0

It seems that 0.0.0.0 has two gateway. Is that OK? Thanks

Help With Apache2 Configuration.

Hello everyone,

I need a little bit of help. I am attempting to install a couple of web based applications, (loganalyzer and rancid). I am running Debian Wheezy and I am creating two separate directories (/var/www/loganalyzer and /var/www/rancid). My overall goal is to be able to connect to these different applications on the same server by typing in the following urls (http://IP_address/loganalyzer and http://IP_address/rancid) respectively.

I am beating my head against the wall configuring the Apache web service. I cannot get these applications to pull up. All I get is a blank screen with both instances.

Can anyone point me in the right direction to help me get this task completed? I truly appreciate the help and if there is any other information you need from me please let me know.

How Do I Run A Application On Top, In A Display Manager Like GDM.(RHEL 7, Gnome 3.8.4

I want to show keyboard layout and selection of language at login screen in RHEL 7.

I have modified the language menu to show "show keyboard layout" and "Region & Language settings".
On clicking above menu items, applications are launched but they are not visible at login screen.
I check the programs are running by taking a remote session.

gkbd-keyboard-display -l us
gnome-control-center region

above two applications are executing but none is displaying at login screen(gdm).

How can I bring the applications at top of display manager(gdm).

I have tried