Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Terminal command to remove old files


  • Please log in to reply
15 replies to this topic

#1 rozzer

rozzer

  • Members
  • 250 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:South Africa
  • Local time:05:55 AM

Posted 15 December 2015 - 08:48 AM

Hi all

 

Having a few modem issues which is finding error due to Sharing violations.

 

Can you help me with the correct Terminal Command to remove all old, obsolete

duplicate files and remnants of obsolete apps etc.

I am getting a modem error saying unable to replace a file due to a 'delete file failure

code 32'  sharing violations.

I tried to install a new modem and the first attempt failed, i removed that attempt but

it's obvious some files remained now I am unable to reinstalled until there is  clean slate

so to speak

 

Thanks in advance

 

Cheers



BC AdBot (Login to Remove)

 


#2 Guest_hollowface_*

Guest_hollowface_*

  • Guests
  • OFFLINE
  •  

Posted 16 December 2015 - 01:37 AM

I don't know the first thing about modems, so I can't help. Someone else might be able to help you, but they will probably need to know a few things like:

- What Linux distro you're using

- What steps you took to get into this situation.

 

The more detail you provide, the better. If you're doing this via the terminal, scroll through your history, and find out exactly which commands you've run.



#3 NickAu

NickAu

    Bleepin' Fish Doctor


  • Moderator
  • 13,382 posts
  • ONLINE
  •  
  • Gender:Male
  • Location:127.0.0.1 Australia

Posted 16 December 2015 - 02:25 AM

Also we need to know more about this modem, Is it internal external?



#4 rozzer

rozzer
  • Topic Starter

  • Members
  • 250 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:South Africa
  • Local time:01:55 PM

Posted 16 December 2015 - 05:56 AM

Linux mint 17.1

 

Hi hollowface & NickAu

 

Well I’ll try and explain why I wanted the Terminal command to remove

Old files etc.

I have an old Modem Which is slowly failing on me and giving me poor signals

And often disconnecting.

I purchased a new modem and installed it successfully in my windows laptop

Then I tried on my desktop with Linux and it fails to install and gives me the error

I mentioned. I thought I would have to manually remove the previous one before

I install the new one but that is done during the new installation automatically, but

Still I thought there was still an old file causing the problem sharing violation.

My modem is an usb, Alcatel MTN  FastLink  X602.

 

At the same time I contacted BC I also contacted another site which deals with MTN

Issues amongst other things (MyBroadband.co.za) they have helped me in the past

With specific modem/connection problems.

I did a ‘dmesg’ before modem installation and again after, at their request and it appears as

As though only usb storage drivers are being loaded no network drivers and they think I need

A new version of the usb-modeswitch package.

I’m not sure where or how to get them but I will await their further response.

 

Please accept my apologies for failing to advise you of my request to them but if you will

Bear with me and let me see what they suggest and if unsuccessful I would appreciate your

Advice further.

 

regards



#5 NickAu

NickAu

    Bleepin' Fish Doctor


  • Moderator
  • 13,382 posts
  • ONLINE
  •  
  • Gender:Male
  • Location:127.0.0.1 Australia
  • Local time:05:55 AM

Posted 16 December 2015 - 06:14 AM

 

Please accept my apologies for failing to advise you of my request to them

That is fine, 

 

Thats a 3 G type dongle?

 

I did something like that a long time ago in Kubuntu

Connect ZTE 3g Modem KDE - Linux & Unix - Bleeping Compute


Edited by NickAu, 16 December 2015 - 06:16 AM.


#6 Al1000

Al1000

  • Global Moderator
  • 7,875 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Scotland
  • Local time:01:55 PM

Posted 16 December 2015 - 06:21 AM

Hi rozzer,

I don't understand why this modem needs installed. I also have a USB modem and I have never installed it. It comes with some software for Windows but I've never used it, and AFAIK the software just provides an interface for the modem on the computer, rather than any drivers to make the modem work

With the USB plugged in, run the following command in a terminal and see if usb0 is mentioned:
ifconfig
What exactly did you do to install the USB in Linux?

#7 Captain_Chicken

Captain_Chicken

  • BC Advisor
  • 1,364 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:04:55 AM

Posted 16 December 2015 - 08:21 AM

Sudo apt-get autoremove will remove extra packages.

Computer Collection:

Spoiler

Spoiler

Spoiler

Spoiler

#8 rozzer

rozzer
  • Topic Starter

  • Members
  • 250 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:South Africa
  • Local time:11:55 PM

Posted 16 December 2015 - 09:01 AM

Hi

 

@Al1000 .......the first modem(now the old one) i just mounted into the usb and it worked fine after i had configured a connection, never

installed any software, in fact it didn't give me that option.

I did the same with this new one but got the 'sharing violation' so I went to 'Computer' and found all the software was there, I tried to do an installation

using the AutoRun.exe but that,s when I get the sharing violation, also i notice that this software is for Windows!!!!.

 

I ran 'ifconfig on both my modems, the old one and the new one and the new is missing the ppp0 section but no mention of usb0.

@Captain_Chicken......thanks I will run it anyway and clean any other old or extra packages.

 

@ NickAu....Thanks


Edited by rozzer, 16 December 2015 - 09:03 AM.


#9 Al1000

Al1000

  • Global Moderator
  • 7,875 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Scotland
  • Local time:05:55 AM

Posted 16 December 2015 - 02:24 PM

What is the "ppp0 section"?

Is your old modem also a USB, and if so what is it called in ifconfig?

#10 rozzer

rozzer
  • Topic Starter

  • Members
  • 250 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:South Africa
  • Local time:04:55 AM

Posted 17 December 2015 - 01:30 AM

Hi

 

@Al1000……there are 3 sections in that ifconfig report:-

 

a) refers to .. (eth0…….Link encap:Ethernet HWaddr bc:5f:f4:bb:78:17)

B) refers to .. ( lo……....Link encap:Local Loopback)

c) refers to .. (ppp0……Link encap:Point-to-Point Protocol)

 

and as I said that section c) .. (ppp0 Link encap:Point-to-Point Protocol) is missing on the new modem 'ifconfig' results.

 

My old modem is a usb and it is a Huawei E156G (the name is not displayed in the 'ifconfig'

results.

My new modem is a usb and is a Alcatel X602 (also not displayed in 'ifconfig' results

Both are MTN FastLink, MTN is my Service Provider.

 

A further update from the other forum is:-

 

Where or how do I obtain the usb-modeswitch package?

 

Reply

Safest option is to get it from your distribution (Linux Mint), but seeing that Mint is based on Debian/Ubuntu you might be able to download and install the .deb file manually straight from Debian:
https://packages.debian.org/sid/usb-modeswitch
(version 2.2.6 was released in Debian today)

If that doesn't work, try following the instructions here:
http://www.draisberghof.de/usb_modeswitch/#download,

 

Thanks a million Al and I would appreciate your comments re-the above before I continue.

 

Cheers


Edited by rozzer, 17 December 2015 - 01:31 AM.


#11 NickAu

NickAu

    Bleepin' Fish Doctor


  • Moderator
  • 13,382 posts
  • ONLINE
  •  
  • Gender:Male
  • Location:127.0.0.1 Australia
  • Local time:05:55 AM

Posted 17 December 2015 - 05:24 AM

I did not have to install anything when I connected the ZTE modem in Kubuntu, All I did was plug it in Kubuntu recognised it,  Yet I never got it going on Ubuntu for some reason, It would be interesting to see if it works in Kubuntu.



#12 Al1000

Al1000

  • Global Moderator
  • 7,875 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Scotland
  • Local time:01:55 PM

Posted 17 December 2015 - 08:54 AM

and as I said that section c) .. (ppp0 Link encap:Point-to-Point Protocol) is missing on the new modem 'ifconfig' results


I don't have a ppp0 section in the output of ifconfig, so perhaps it's not meant to be there.
 

 

My old modem is a usb and it is a Huawei E156G (the name is not displayed in the 'ifconfig'results.

What I mean is, does the old modem show up as usb0?
 

 

Where or how do I obtain the usb-modeswitch package?



Reply

Safest option is to get it from your distribution (Linux Mint), but seeing that Mint is based on Debian/Ubuntu you might be able to download and install the .deb file manually straight from Debian:

I would first of all check that usb-modeswitch is not already installed, by running this command:
 

apt-cache policy usb-modeswitch

Please also post a link to your thread on the other forum. We recommend limiting each question to one forum at a time, because it can become confusing when people ask the same question on different forums at the same time, with the people on each forum unaware of what has been said on the other forum.


Edited by Al1000, 17 December 2015 - 11:45 AM.


#13 rozzer

rozzer
  • Topic Starter

  • Members
  • 250 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:South Africa
  • Local time:04:55 AM

Posted 17 December 2015 - 09:29 AM

Hi again In the ifconfig results there is no mention anywhere of usb0 on either modem

apt-cache-policy usb-modeswitch says command not found

 

Re the other forum

Quick update

I managed to download the package 'usb-modeswitch-2.2.6.tar.bz2

Not sure how to install it, never done this before.

Checked in Synaptic package manager and there is a usb-modeswitch installed 2.1.1 +repack0-1 ubuntu1.

 

Response was to try Debian first

 

my reply

 

Ok I tried usb-modeswitch_2.2.6+repack0-1_i386.deb

That loaded but with an error requiring package libjim0.76

I manage to find that package and loaded it and then it says that is already loaded

I tried again and then I get the error

package................. usb modeswitch

Status Error:.......... Dependency is not satisfiable: usb-modeswitch-data (>=20140529)

 

I,m lost now

MyBroadband

http://mybroadband.co.za/vb/showthread.php/788285-MTN-usb-modem-connection-problems

 

Thanks a bunch Al for your time and help Cheers


Edited by rozzer, 17 December 2015 - 09:41 AM.


#14 Al1000

Al1000

  • Global Moderator
  • 7,875 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Scotland
  • Local time:05:55 AM

Posted 17 December 2015 - 11:56 AM

Hi again In the ifconfig results there is no mention anywhere of usb0 on either modem


That is odd. Did you try plugging in the old modem then restarting your computer? Is the old modem still working, at least to some extent?

apt-cache-policy usb-modeswitch says command not found
Sorry, that was a typo. I've edited my post. The correct command is
apt-cache policy usb-modeswitch
This is what I get when I run the command on Kubuntu on my computer:

al@my_desktop_pc:~$ apt-cache policy usb-modeswitch
usb-modeswitch:
  Installed: 2.1.1+repack0-1ubuntu1
  Candidate: 2.1.1+repack0-1ubuntu1
  Version table:
 *** 2.1.1+repack0-1ubuntu1 0
        500 http://mirror.bytemark.co.uk/ubuntu/ trusty/main i386 Packages
        100 /var/lib/dpkg/status
Looking a the output of dmesg that you posted on the other forum, it looks like you already have usb-modeswitch installed. Running the command I posted will establish which version it is.

#15 rozzer

rozzer
  • Topic Starter

  • Members
  • 250 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:South Africa
  • Local time:04:55 AM

Posted 18 December 2015 - 02:19 AM

Hi Al

   

Yes I tried it numerous times but it's the same.

The old modem is still working but very poorly I can only keep a connection for a few minutes

sometimes I do have a good run for a while.

 

apt-cache policy usb-modeswitch, Gives me identical results as yours.

 

To keep you up to date see the following via the other forum:-

.............................................................................................................

 

Everything installed in Synaptic Manager:-

usb-modeswitch-data……….installed version 20151101-1

usb-modeswitch…………….installed version 2.2.6+repack0-1

I did run  sudo apt-get install -f again and it is clear.

 

 

This is the situation now.

 

Old modem still runs the same as before.

New Modem is installed and sometimes it finds it and sometimes not

once it gets disconnected I cannot get a option to reconnect in the

network manager, when I go to check in network settings, there is only

'Wired & Network Proxy' no 'Mobile Broadband' , also sometimes the

Windows packages appear as an applet at the bottom next to the Network Manager,

before I can continue I have to go to 'Computer' and you can see all the packages,

then I have to eject and start again, at least we are (or should I say you are) making progress.

 

I checked my signals strength in modem manager for both modems and they

are still the same as before 'Edge 51%'  very bad.

 

I contacted I.T yesterday in Durban and they say they will be attending to it

to-day or sometime next week as they have had other calls about signals problems

(not sure that will happen….its Christmas)

 

Thanks for everything so far

Look forward to your response

 

Cheers

........................................................................................................

Thanks once gain Al

 

Cheers






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users