Obtrusive Windows licence agreement, broken packages, etc.

Questions about applications and software
Forum rules
Before you post please read this

Obtrusive Windows licence agreement, broken packages, etc.

Postby seavagabond on Fri Feb 01, 2013 1:24 pm

Had been experiencing a few problems with the system when installing new applications.
I have a Toshiba Portege R500 and have Mint 13 Maya Mate 64-bits installed.
The Software Manager has stopped working for a long time now and I use the command line instead.
Recently I tried to install Wine, since then, when trying to install an application or fixing packages through the terminal a window opens asking to sign a Microsoft licence agreement and I need to close the terminal and abort whatever operation I was doing (screenshot attached).

Now I tried to install syslinux and I get the following:

sudo apt-get install syslinux
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?


The two things are not probably related but for sure something odd is going on. Thanks in advance for any help.
I just seen the post Install Wine on Linux Mint 13 MATE 64 bit by xenopeek but too late now!
Attachments
EULA.png
EULA.png (89.13 KiB) Viewed 1075 times
“You never change things by fighting the existing reality. To change something, build a new model that makes the existing model obsolete. “ Buckminster Fuller
seavagabond
Level 2
Level 2
 
Posts: 57
Joined: Sat Sep 24, 2011 12:40 pm

Linux Mint is funded by ads and donations.
 

Re: Obtrusive Windows licence agreement, broken packages, e

Postby viking777 on Fri Feb 01, 2013 2:36 pm

If you are installing microsoft products (and they include fonts in that definition) then you can expect to suffer microsoft licensing nonsense - no mystery there.

As for the other error just remove the lock file.

Code: Select all
sudo rm -f /var/lib/dpkg/lock


Then try again.

It might even make the software manager work again who knows. Btw, if it doesn't just use Synaptic, it is better than the software manager and easier than the command line.
Fujitsu Lifebook AH532. Intel i5 processor, 6Gb ram, Intel HD3000 graphics, Intel Audio/wifi. Realtek RTL8111/8168B Ethernet.Lubuntu 13.10,Ubuntu12.10 (Unity), Mint16 (Cinnamon), Manjaro (Xfce).
Image
User avatar
viking777
Level 14
Level 14
 
Posts: 5153
Joined: Mon Dec 01, 2008 11:21 am

Re: Obtrusive Windows licence agreement, broken packages, e

Postby srs5694 on Fri Feb 01, 2013 7:06 pm

The screen shot you showed looks like it's the license agreement for a Linux-format font package containing Microsoft fonts. This package was probably installed as a dependency on something else (probably WINE), but it's probably not the WINE binary that's causing it to appear. You should probably just accept the license terms; then it shouldn't appear again, at least not unless or until the package is updated. If you find the license terms objectionable, you should be able to uninstall the package:

Code: Select all
sudo dpkg -P ttf-mscorefonts-installer


Since the package is not 100% configured, though, it's conceivable you'll need to use another command or add some options. (I'm not all that familiar with that detail of dpkg operation.) Also, if the package was brought in because of a dependency, that dependency won't be met, so dpkg will probably complain and either require you to remove the depended-upon package or issue an override option, such as --ignore-depends. The latter option will likely create hassles down the road, though, since apt-get will probably try to re-install the unwanted fonts package whenever you run it.
srs5694
Level 6
Level 6
 
Posts: 1020
Joined: Mon Feb 27, 2012 1:42 pm

Re: Obtrusive Windows licence agreement, broken packages, e

Postby seavagabond on Sat Feb 02, 2013 9:03 pm

The mscorefonts-installer popped up again when doing something and it doesn't allow me to accept it (at least I didn't find a way), so I tried to uninstall it and I get the following:

Code: Select all
sudo dpkg -P ttf-mscorefonts-installer
dpkg: error processing ttf-mscorefonts-installer (--purge):
 Package is in a very bad inconsistent state - you should
 reinstall it before attempting a removal.
Errors were encountered while processing:
 ttf-mscorefonts-installer


What can I do? I'm happy to delete the whole Wine thing. How do I do it?
“You never change things by fighting the existing reality. To change something, build a new model that makes the existing model obsolete. “ Buckminster Fuller
seavagabond
Level 2
Level 2
 
Posts: 57
Joined: Sat Sep 24, 2011 12:40 pm

Re: Obtrusive Windows licence agreement, broken packages, e

Postby srs5694 on Sat Feb 02, 2013 11:03 pm

Try doing as the message suggests: Re-install it (via "sudo apt-get install ttf-mscorefonts-installer"). You can then try uninstalling it if you like.
srs5694
Level 6
Level 6
 
Posts: 1020
Joined: Mon Feb 27, 2012 1:42 pm

Re: Obtrusive Windows licence agreement, broken packages, e

Postby seavagabond on Sun Feb 03, 2013 11:16 am

Thanks, done that. Finding things still confusing, I still get the message:

Code: Select all
E: Could not get lock /var/cache/apt/archives/lock - open (11: Resource temporarily unavailable)
E: Unable to lock directory /var/cache/apt/archives/[/quote]


Below is what I've done:


Code: Select all
sudo apt-get install ttf-mscorefonts-installer
[sudo] password for francesca:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  gir1.2-webkit-3.0 gir1.2-javascriptcoregtk-3.0
Use 'apt-get autoremove' to remove them.
The following packages will be upgraded:
  ttf-mscorefonts-installer
1 upgraded, 0 newly installed, 0 to remove and 402 not upgraded.
1 not fully installed or removed.
E: Could not get lock /var/cache/apt/archives/lock - open (11: Resource temporarily unavailable)
E: Unable to lock directory /var/cache/apt/archives/
francesca@PORTEGE-R500 ~ $ sudo rm -f /var/lib/dpkg/lock
francesca@PORTEGE-R500 ~ $
francesca@PORTEGE-R500 ~ $ sudo apt-get install ttf-mscorefonts-installer
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  gir1.2-webkit-3.0 gir1.2-javascriptcoregtk-3.0
Use 'apt-get autoremove' to remove them.
The following packages will be upgraded:
  ttf-mscorefonts-installer
1 upgraded, 0 newly installed, 0 to remove and 402 not upgraded.
1 not fully installed or removed.
E: Could not get lock /var/cache/apt/archives/lock - open (11: Resource temporarily unavailable)
E: Unable to lock directory /var/cache/apt/archives/
francesca@PORTEGE-R500 ~ $ apt-get install -f
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
francesca@PORTEGE-R500 ~ $ sudo apt-get install -f
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  gir1.2-webkit-3.0 gir1.2-javascriptcoregtk-3.0
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  ttf-mscorefonts-installer
The following packages will be upgraded:
  ttf-mscorefonts-installer
1 upgraded, 0 newly installed, 0 to remove and 409 not upgraded.
1 not fully installed or removed.
E: Could not get lock /var/cache/apt/archives/lock - open (11: Resource temporarily unavailable)
E: Unable to lock directory /var/cache/apt/archives/
francesca@PORTEGE-R500 ~ $
francesca@PORTEGE-R500 ~ $ sudo apt-get remove --purge wine
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package wine is not installed, so not removed
The following packages were automatically installed and are no longer required:
  gir1.2-webkit-3.0 gir1.2-javascriptcoregtk-3.0
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  ttf-mscorefonts-installer
The following packages will be upgraded:
  ttf-mscorefonts-installer
1 upgraded, 0 newly installed, 0 to remove and 409 not upgraded.
1 not fully installed or removed.
E: Could not get lock /var/cache/apt/archives/lock - open (11: Resource temporarily unavailable)
E: Unable to lock directory /var/cache/apt/archives/
francesca@PORTEGE-R500 ~ $ sudo apt-get remove --purge ttf-mscorefonts-installer
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  gir1.2-webkit-3.0 gir1.2-javascriptcoregtk-3.0
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED
  ttf-mscorefonts-installer*
0 upgraded, 0 newly installed, 1 to remove and 409 not upgraded.
1 not fully installed or removed.
E: Could not get lock /var/cache/apt/archives/lock - open (11: Resource temporarily unavailable)
E: Unable to lock directory /var/cache/apt/archives/
“You never change things by fighting the existing reality. To change something, build a new model that makes the existing model obsolete. “ Buckminster Fuller
seavagabond
Level 2
Level 2
 
Posts: 57
Joined: Sat Sep 24, 2011 12:40 pm

Re: Obtrusive Windows licence agreement, broken packages, e

Postby viking777 on Sun Feb 03, 2013 11:53 am

The fact that you keep getting all these 'lock' errors seems to suggest that you have some other package management program running at the same time you are using the command line. The following programs should be closed whilst attempting to use apt-get: mintupdate, mintinstall, synaptic, software manager. If you are sure nothing of this sort is running and you are still getting 'lock' errors then all you can do is to forcibly remove the lock file, in this case:

Code: Select all
sudo rm -f /var/cache/apt/archives/lock


And try again.
Fujitsu Lifebook AH532. Intel i5 processor, 6Gb ram, Intel HD3000 graphics, Intel Audio/wifi. Realtek RTL8111/8168B Ethernet.Lubuntu 13.10,Ubuntu12.10 (Unity), Mint16 (Cinnamon), Manjaro (Xfce).
Image
User avatar
viking777
Level 14
Level 14
 
Posts: 5153
Joined: Mon Dec 01, 2008 11:21 am

Re: Obtrusive Windows licence agreement, broken packages, e

Postby srs5694 on Sun Feb 03, 2013 11:58 am

It looks to me like there's something else trying to use your package system -- perhaps an automatic updater that's failing to exit. You might see if dropping to single-user mode ("sudo telinit 1") will enable you to run those commands. Note that when you do this, your GUI will disappear along with most of your running programs (including all of your running GUI programs), and you'll end up with a text-mode session. I just tested this and I was prompted for the root password, which I set on all my computers. I'm not sure what will happen if you haven't set a root password; perhaps that prompt will be skipped, or maybe it won't work at all. Once you're done, rebooting or typing "telinit 2" will restore your GUI session, although you'll need to re-launch any open programs.

If this doesn't work, then it may require somebody with more dpkg/APT know-how than I've got to resolve the problem.
srs5694
Level 6
Level 6
 
Posts: 1020
Joined: Mon Feb 27, 2012 1:42 pm

Re: Obtrusive Windows licence agreement, broken packages, e

Postby seavagabond on Sun Feb 03, 2013 6:45 pm

Help! my Network Manager is not running any more.

I'm connecting from another computer.

I run

Code: Select all
sudo rm -f /var/cache/apt/archives/lock


But I still got some error messages, so I run the command

Code: Select all
sudo telinit 1


and things seemed to work better,

after I rebooted the laptop with

Code: Select all
sudo telinit 2


I had lost connection.

How can I re-enable Networking?
“You never change things by fighting the existing reality. To change something, build a new model that makes the existing model obsolete. “ Buckminster Fuller
seavagabond
Level 2
Level 2
 
Posts: 57
Joined: Sat Sep 24, 2011 12:40 pm

Re: Obtrusive Windows licence agreement, broken packages, e

Postby viking777 on Mon Feb 04, 2013 5:39 am

Well first of all you shut down the computer and restart it. But I assume you will have already tried that.
The second question is how do you know your network manager is not working? It might seem like a stupid question, but it isn't. The applet you see in your system tray is not the network manager, it is an applet for controlling the network manager. So we have to establish first what it is that is not working. The easiest way to see if nework manager is running or not is to open the 'System Monitor' program, and select the processes tab. Then go to the 'View' menu on the top bar and select 'All Processes'. Now scroll down the list until you get to the letter 'N' and if network manager is running you will see it there. If you don't see it then it is not running. The part of Network Manager that you see on your system tray is called nm-applet - on a normal system you can see the process just under the network manager one. Maybe on your system it isn't there.

Once you have decided which one it is you can run either of these two commands from a terminal:

If network-manager has stopped run

Code: Select all
sudo service network-manager stop


(Just to be sure) then

Code: Select all
sudo rm /var/lib/NetworkManager/NetworkManager.state


then

Code: Select all
sudo service network-manager start


Then reboot and see if you have a working network manager.

If it is just the tray applet that is not running you can start that with the command:

Code: Select all
nm-applet
Fujitsu Lifebook AH532. Intel i5 processor, 6Gb ram, Intel HD3000 graphics, Intel Audio/wifi. Realtek RTL8111/8168B Ethernet.Lubuntu 13.10,Ubuntu12.10 (Unity), Mint16 (Cinnamon), Manjaro (Xfce).
Image
User avatar
viking777
Level 14
Level 14
 
Posts: 5153
Joined: Mon Dec 01, 2008 11:21 am

Re: Obtrusive Windows licence agreement, broken packages, e

Postby soldier1st on Mon Feb 04, 2013 1:10 pm

viking777 wrote:If you are installing microsoft products (and they include fonts in that definition) then you can expect to suffer microsoft licensing nonsense - no mystery there.

As for the other error just remove the lock file.

Code: Select all
sudo rm -f /var/lib/dpkg/lock


Then try again.

It might even make the software manager work again who knows. Btw, if it doesn't just use Synaptic, it is better than the software manager and easier than the command line.

I find i use Synaptic for apps, but use the update manager in the lower right to update stuff. so much simpler.
soldier1st
Level 1
Level 1
 
Posts: 40
Joined: Fri Aug 17, 2012 2:59 am
Location: /home/soldier1st

Re: Obtrusive Windows licence agreement, broken packages, e

Postby seavagabond on Mon Feb 04, 2013 1:19 pm

Thank you vicking777, online again. Will try to install some other application and see if I get more error messages. When running:

Code: Select all
sudo telinit 1


the /ttf-mscorefonts-installer bug was removed completely - or so it seems so far!
Thank you srs5694.
“You never change things by fighting the existing reality. To change something, build a new model that makes the existing model obsolete. “ Buckminster Fuller
seavagabond
Level 2
Level 2
 
Posts: 57
Joined: Sat Sep 24, 2011 12:40 pm

Linux Mint is funded by ads and donations.
 

Return to Software & Applications

Who is online

Users browsing this forum: No registered users and 16 guests