SnapOverflow

SnapOverflow Logo SnapOverflow Logo

SnapOverflow Navigation

  • Home
  • Server
  • Ubuntu

Mobile menu

Close
  • Home
  • System Administrators
    • Hot Questions
    • New Questions
    • Tags
  • Ubuntu
    • Hot Questions
    • New Questions
    • Tags
  • Help
Home / user-747939

GD- Ganesh Deshmukh's questions

Martin Hope
GD- Ganesh Deshmukh
Asked: 2018-12-24 03:13:42 +0800 CST

How can I change Python version in Sublime Text 3?

  • 3

I am using Sublime Text 3 in Ubuntu. The default Python is python2 which Sublime uses when I build program using Ctrl+B.

I am trying to run code as,

print(f"Player {row[0]} Vertically =")

but it gives error as follows because code is run with default Python

File "/home/gd/Desktop/python/python-revision/pp_13_iterators_iterables.py", line 41
  print(f"Player {row[0]} Vertically =")
                                      ^
SyntaxError: invalid syntax
[Finished in 0.0s with exit code 1]
[shell_cmd: python -u "/home/gd/Desktop/python/python-revision/pp_13_iterators_iterables.py"]
[dir: /home/gd/Desktop/python/python-revision]

However, when I run same program from terminal, using python3 it works as expected.

$ python3 pp_13_iterators_iterables.py
[1, 2, 1]
[2, 0, 1]
[1, 2, 1]
Vertically
Player 1 Vertically =

How can I change default build environment of Sublime Text to Python 3 and build it using shortcut as Ctrl+B?

I tried using alias as

alias python="/usr/bin/python3.6"

but it didn't work and gave same error as previous.

python3 sublime-text
  • 2 Answers
  • 15880 Views
Martin Hope
GD- Ganesh Deshmukh
Asked: 2018-09-10 22:13:36 +0800 CST

Why Ubuntu 18.04- ALT+F4 closes all windows, on pressing combination only once?

  • 5

I used Ubuntu 16.04, but in U18.04, when I use the combination of ALT+F4, it closes all windows along with the background windows until it reaches the desktop screen and no other app is running.

It happens mostly when I use VLC. Also for other apps as well.

Expected behavior: It should close only the current window/app.

Actual behavior: It closes other windows along with the current one.

Is this a bug or my mistake?

I don't press keys for a long time, which could cause closing all windows.

gnome shortcut-keys 18.04
  • 0 Answers
  • 1097 Views
Martin Hope
GD- Ganesh Deshmukh
Asked: 2018-08-11 20:40:12 +0800 CST

How to convert script command output into plain text

  • 1

I am using script-command to save the output of terminal to file.

but, it gives some extra characters like square-like characters and other text encrypted characters.

man script command tells, by using -q flag/option, it gives quite an output, without writing start and done messages to standard output, but it won't remove extra characters.

here

how can I get following:

1) make output file exactly same as of terminal output, removing extra characters.

2) In generated file, due to plain text-without color(unlike terminal), I can't figure-out directly input commands, because output and command I entered appears of same font,

can I make command as bold or easily recognizable than rest output?

scripts command-line gnome-terminal bash console
  • 1 Answers
  • 6012 Views
Martin Hope
GD- Ganesh Deshmukh
Asked: 2018-08-06 08:12:26 +0800 CST

How to install node-sass on Ubuntu 18.04, and How to succesfully compile .scss file to css?

  • 6

I have tried this answers but it didn't work.

I am trying to compile files in my scss folder to regular css files but it's hanged in between.

I installed node-sass from npm and it gives error as

gd@gd10:~/Desktop/portfolio/portfolio$ sudo npm install -g node-sass
[sudo] password for gd:
/usr/local/bin/node-sass -> /usr/local/lib/node_modules/node-sass/bin/node-sass

> node-sass@4.9.2 install /usr/local/lib/node_modules/node-sass
> node scripts/install.js

Unable to save binary /usr/local/lib/node_modules/node-sass/vendor/linux-x64-64 :{ Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/node-sass/vendor'
    at Object.mkdirSync (fs.js:738:3)
    at sync (/usr/local/lib/node_modules/node-sass/node_modules/mkdirp/index.js:71:13)
    at Function.sync (/usr/local/lib/node_modules/node-sass/node_modules/mkdirp/index.js:77:24)
    at checkAndDownloadBinary (/usr/local/lib/node_modules/node-sass/scripts/install.js:114:11)
    at Object.<anonymous> (/usr/local/lib/node_modules/node-sass/scripts/install.js:157:1)
    at Module._compile (internal/modules/cjs/loader.js:689:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
    at Module.load (internal/modules/cjs/loader.js:599:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
    at Function.Module._load (internal/modules/cjs/loader.js:530:3)
  errno: -13,
  syscall: 'mkdir',
  code: 'EACCES',
  path: '/usr/local/lib/node_modules/node-sass/vendor' }

> node-sass@4.9.2 postinstall /usr/local/lib/node_modules/node-sass
> node scripts/build.js

Building: /usr/local/bin/node /usr/local/lib/node_modules/node-sass/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [ '/usr/local/bin/node',
gyp verb cli   '/usr/local/lib/node_modules/node-sass/node_modules/node-gyp/bin/node-gyp.js',
gyp verb cli   'rebuild',
gyp verb cli   '--verbose',
gyp verb cli   '--libsass_ext=',
gyp verb cli   '--libsass_cflags=',
gyp verb cli   '--libsass_ldflags=',
gyp verb cli   '--libsass_library=' ]
gyp info using node-gyp@3.7.0
gyp info using node@10.6.0 | linux | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb check python checking for Python executable "python2" in the PATH
gyp verb `which` succeeded python2 /usr/bin/python2
gyp verb check python version `/usr/bin/python2 -c "import platform; print(platform.python_version());"` returned: "2.7.15rc1\n"
gyp verb get node dir no --target version specified, falling back to host node version: 10.6.0
gyp verb command install [ '10.6.0' ]
gyp verb install input version string "10.6.0"
gyp verb install installing version: 10.6.0
gyp verb install --ensure was passed, so won't reinstall if already installed
gyp verb install version is already installed, need to check "installVersion"
gyp verb got "installVersion" 9
gyp verb needs "installVersion" 9
gyp verb install version is good
gyp verb get node dir target node version installed: 10.6.0
gyp verb build dir attempting to create "build" dir: /usr/local/lib/node_modules/node-sass/build
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/node-sass/build'
gyp ERR! System Linux 4.15.0-29-generic
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/node-sass/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /usr/local/lib/node_modules/node-sass
gyp ERR! node -v v10.6.0
gyp ERR! node-gyp -v v3.7.0
gyp ERR! not ok
Build failed with error code: 1
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass@4.9.2 postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass@4.9.2 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/gd/.npm/_logs/2018-08-05T16_10_00_943Z-debug.log
gd@gd10:~/Desktop/portfolio/portfolio$
css nodejs grunt
  • 2 Answers
  • 18341 Views
Martin Hope
GD- Ganesh Deshmukh
Asked: 2018-06-13 19:32:18 +0800 CST

slow Graphics on Ubuntu 18.04, on Dell(Intel graphics drivers), while watching Youtube videos

  • 1

while watching videos(Youtube) it freezes for about 5-10 seconds and then continues but audio keeps running. I tried in different browsers, but no solution.

graphics intel-graphics gpu-driver 18.04
  • 2 Answers
  • 3294 Views
Martin Hope
GD- Ganesh Deshmukh
Asked: 2018-05-27 06:11:14 +0800 CST

How to install watchman on Ubuntu 18.04, for react-native? error in make command

  • 14

I have read this solution .

I wanted nodeman as dependency for react-native

no error upto ./configure command and it works fine as given solution

gd@gd10:/tmp$ git clone https://github.com/facebook/watchman.git
Cloning into 'watchman'...
remote: Counting objects: 18852, done.
remote: Compressing objects: 100% (103/103), done.
remote: Total 18852 (delta 50), reused 64 (delta 27), pack-reused 18718
Receiving objects: 100% (18852/18852), 12.37 MiB | 1011.00 KiB/s, done.
Resolving deltas: 100% (12582/12582), done.
gd@gd10:/tmp$ cd watchman/
gd@gd10:/tmp/watchman$ git checkout v4.7.0
Note: checking out 'v4.7.0'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at 93b67583 watchman: fixup recent test tweaks for windows
gd@gd10:/tmp/watchman$ sudo apt-get install -y autoconf automake build-essential python-dev libtool libssl-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
autoconf is already the newest version (2.69-11).
automake is already the newest version (1:1.15.1-3ubuntu2).
build-essential is already the newest version (12.4ubuntu1).
libssl-dev is already the newest version (1.1.0g-2ubuntu4).
libtool is already the newest version (2.4.6-2).
python-dev is already the newest version (2.7.15~rc1-1).
0 upgraded, 0 newly installed, 0 to remove and 27 not upgraded.
gd@gd10:/tmp/watchman$ ./autogen.sh
configure.ac:21: installing './compile'
configure.ac:2: installing './config.guess'
configure.ac:2: installing './config.sub'
configure.ac:3: installing './install-sh'
configure.ac:3: installing './missing'
Makefile.am: installing './depcomp'
parallel-tests: installing './test-driver'
gd@gd10:/tmp/watchman$ ./configure
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking whether byte ordering is bigendian... no
checking for inline... inline
checking for ranlib... ranlib
checking dependency style of gcc... gcc3
checking for arc... no
checking for python... /usr/bin/python
checking for python version... 2.7
checking for python platform... linux2
checking for python script directory... ${prefix}/lib/python2.7/dist-packages
checking for python extension module directory... ${exec_prefix}/lib/python2.7/dist-packages
checking for pcre-config... false
checking for PCRE using false... failed
checking for library containing pthread_create... -lpthread
checking for library containing socket... none required
checking for sys/types.h... (cached) yes
checking for inttypes.h... (cached) yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking port.h usability... no
checking port.h presence... no
checking for port.h... no
checking sys/inotify.h usability... yes
checking sys/inotify.h presence... yes
checking for sys/inotify.h... yes
checking sys/event.h usability... no
checking sys/event.h presence... no
checking for sys/event.h... no
checking sys/ucred.h usability... no
checking sys/ucred.h presence... no
checking for sys/ucred.h... no
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking for mkostemp... yes
checking for kqueue... no
checking for port_create... no
checking for inotify_init... yes
checking for strtoll... yes
checking for localeconv... yes
checking for statfs... yes
checking for accept4... yes
checking for inotify_init1... yes
checking for getattrlistbulk... no
checking for openat... yes
checking for fdopendir... yes
checking for sys/vfs.h... yes
checking for sys/param.h... yes
checking for sys/mount.h... yes
checking for sys/statfs.h... yes
checking for sys/statvfs.h... yes
checking valgrind/valgrind.h usability... no
checking valgrind/valgrind.h presence... no
checking for valgrind/valgrind.h... no
checking execinfo.h usability... yes
checking execinfo.h presence... yes
checking for execinfo.h... yes
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking CoreServices/CoreServices.h usability... no
checking CoreServices/CoreServices.h presence... no
checking for CoreServices/CoreServices.h... no
checking for FSEventStreamSetExclusionPaths... no
checking for backtrace... yes
checking for backtrace_symbols... yes
checking for backtrace_symbols_fd... yes
checking for sys_siglist... yes
checking for memmem... yes
checking for struct statvfs.f_fstypename... no
checking for struct statvfs.f_basetype... no
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating thirdparty/jansson/jansson_config.h
config.status: creating config.h
config.status: executing depfiles commands

Your build configuration:

        CPPFLAGS =  -D_REENTRANT -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
        CFLAGS = -g -O2 -Wall -Wextra -Wdeclaration-after-statement -g -gdwarf-2 -fno-omit-frame-pointer
        LDFLAGS =
        prefix: /usr/local
        version: 4.7.0
        state directory: /usr/local/var/run/watchman

but error started after make command.

gd@gd10:/tmp/watchman$ make
make  all-am
make[1]: Entering directory '/tmp/watchman'
  CC       thirdparty/libart/src/art.o
  AR       libart.a
ar: `u' modifier ignored since `D' is the default (see `U')
  CC       thirdparty/libtap_a-tap.o
  AR       libtap.a
ar: `u' modifier ignored since `D' is the default (see `U')
  CC       thirdparty/wildmatch/wildmatch.o
  AR       libwildmatch.a
ar: `u' modifier ignored since `D' is the default (see `U')
  CC       thirdparty/jansson/libwmanjson_a-dump.o
  CC       thirdparty/jansson/libwmanjson_a-error.o
  CC       thirdparty/jansson/libwmanjson_a-hashtable.o
  CC       thirdparty/jansson/libwmanjson_a-load.o
  CC       thirdparty/jansson/libwmanjson_a-memory.o
  CC       thirdparty/jansson/libwmanjson_a-pack_unpack.o
  CC       thirdparty/jansson/libwmanjson_a-strbuffer.o
  CC       thirdparty/jansson/libwmanjson_a-strconv.o
  CC       thirdparty/jansson/libwmanjson_a-utf.o
  CC       thirdparty/jansson/libwmanjson_a-value.o
  AR       libwmanjson.a
ar: `u' modifier ignored since `D' is the default (see `U')
  CC       watchman-argv.o
  CC       watchman-envp.o
  CC       watchman-spawn.o
  CC       watchman-opt.o
  CC       watchman-cfg.o
  CC       watchman-clockspec.o
  CC       watchman-checksock.o
  CC       watchman-fstype.o
  CC       watchman-log.o
  CC       watchman-ignore.o
  CC       watchman-json.o
  CC       watchman-bser.o
  CC       watchman-expflags.o
  CC       watchman-hash.o
hash.c: In function ‘w_hash_bytes’:
hash.c:228:17: error: this statement may fall through [-Werror=implicit-fallthrough=]
       case 12: c+=((uint32_t)k[11])<<24;
                ~^~~~~~~~~~~~~~~~~~~~~~~
hash.c:229:7: note: here
       case 11: c+=((uint32_t)k[10])<<16;
       ^~~~
hash.c:229:17: error: this statement may fall through [-Werror=implicit-fallthrough=]
       case 11: c+=((uint32_t)k[10])<<16;
                ~^~~~~~~~~~~~~~~~~~~~~~~
hash.c:230:7: note: here
       case 10: c+=((uint32_t)k[9])<<8;
       ^~~~
hash.c:230:17: error: this statement may fall through [-Werror=implicit-fallthrough=]
       case 10: c+=((uint32_t)k[9])<<8;
                ~^~~~~~~~~~~~~~~~~~~~~
hash.c:231:7: note: here
       case 9 : c+=k[8];
       ^~~~
hash.c:231:17: error: this statement may fall through [-Werror=implicit-fallthrough=]
       case 9 : c+=k[8];
                ~^~~~~~
hash.c:232:7: note: here
       case 8 : b+=((uint32_t)k[7])<<24;
       ^~~~
hash.c:232:17: error: this statement may fall through [-Werror=implicit-fallthrough=]
       case 8 : b+=((uint32_t)k[7])<<24;
                ~^~~~~~~~~~~~~~~~~~~~~~
hash.c:233:7: note: here
       case 7 : b+=((uint32_t)k[6])<<16;
       ^~~~
hash.c:233:17: error: this statement may fall through [-Werror=implicit-fallthrough=]
       case 7 : b+=((uint32_t)k[6])<<16;
                ~^~~~~~~~~~~~~~~~~~~~~~
hash.c:234:7: note: here
       case 6 : b+=((uint32_t)k[5])<<8;
       ^~~~
hash.c:234:17: error: this statement may fall through [-Werror=implicit-fallthrough=]
       case 6 : b+=((uint32_t)k[5])<<8;
                ~^~~~~~~~~~~~~~~~~~~~~
hash.c:235:7: note: here
       case 5 : b+=k[4];
       ^~~~
hash.c:235:17: error: this statement may fall through [-Werror=implicit-fallthrough=]
       case 5 : b+=k[4];
                ~^~~~~~
hash.c:236:7: note: here
       case 4 : a+=((uint32_t)k[3])<<24;
       ^~~~
hash.c:236:17: error: this statement may fall through [-Werror=implicit-fallthrough=]
       case 4 : a+=((uint32_t)k[3])<<24;
                ~^~~~~~~~~~~~~~~~~~~~~~
hash.c:237:7: note: here
       case 3 : a+=((uint32_t)k[2])<<16;
       ^~~~
hash.c:237:17: error: this statement may fall through [-Werror=implicit-fallthrough=]
       case 3 : a+=((uint32_t)k[2])<<16; 

according to its solution, I deleted directory but it gave same errors.

software-installation make nodejs ubuntu-make
  • 7 Answers
  • 28842 Views
Martin Hope
GD- Ganesh Deshmukh
Asked: 2018-04-07 20:46:33 +0800 CST

react-native watchman error, after npm start on Ubuntu 17.10.

  • 2

I am trying to start project of React-native on Ubuntu, node,npm are at latest versions. according to documentation I have Install all official create-react-native-app and its dependencies.

here is my output screen after npm start

gd@gd:~/Desktop$ cd testing7/
gd@gd:~/Desktop/testing7$ npm start

> testing7@0.1.0 start /home/gd/Desktop/testing7
> react-native-scripts start

10:01:07: Starting packager...
***ERROR STARTING PACKAGER***
Starting React Native packager...
Scanning folders for symlinks in /home/gd/Desktop/testing7/node_modules (44ms)
Loading dependency graph.



jest-haste-map: Watchman crawl failed. Retrying once with node crawler.
  Usually this happens when watchman isn't running. Create an empty `.watchmanconfig` file in your project's root folder or initialize a git or hg repository in your project.
  Error: Watchman error: A non-recoverable condition has triggered.  Watchman needs your help!
The triggering condition was at timestamp=1523075484: opendir(/home/gd/Desktop/testing7/node_modules/metro/node_modules/ansi-regex) -> The user limit on the total number of inotify watches was reached; increase the fs.inotify.max_user_watches sysctl
All requests will continue to fail with this message until you resolve
the underlying problem.  You will find more information on fixing this at
https://facebook.github.io/watchman/docs/troubleshooting.html#poison-opendir. Make sure watchman is running for this project. See https://facebook.github.io/watchman/docs/troubleshooting.html.

screenshot

dependencies npm
  • 4 Answers
  • 5648 Views
Martin Hope
GD- Ganesh Deshmukh
Asked: 2018-04-07 11:25:39 +0800 CST

./autogen not working on Ubuntu to install watchman for react-native

  • 2

I am trying to install watchman in Ubuntu 17.10, to run npm run android in command line to run React-Native in terminal.

I have tried sudo apt-get install -y autoconf automake build-essential python-dev,

then when I run ./autogen.sh, it throws this error:

./autogen.sh 
pkg-config appears to be missing (not available to autoconf tools)
please install the pkg-config package for your system.
software-installation compiling 17.10 android-emulator
  • 2 Answers
  • 4594 Views
Martin Hope
GD- Ganesh Deshmukh
Asked: 2018-02-26 06:16:29 +0800 CST

I have two versions of VLC installed on the same system [duplicate]

  • 3
This question already has answers here:
What is the difference between "vlc" and "VLC media player" in Ubuntu Software in Ubuntu 16.04? [duplicate] (2 answers)
Closed 4 years ago.

There are two VLCs:

  1. VLC (The ultimate media player) - version- 3.0.0

  2. VLC media player (Read, capture, broadcast your multimedia streams) - version - 2.2.6-6

I am worried that one of them may be fake. Which one is safe?

vlc
  • 1 Answers
  • 1777 Views
Martin Hope
GD- Ganesh Deshmukh
Asked: 2018-02-17 03:53:58 +0800 CST

I removed windows partition from dualboot ubuntu, but now I can't repair windows even after trying to install through dvd-iso?

  • 0

my machine is dualboot windows and UBUNTU 17 (EFI). before a year I installed Ubuntu as dualboot with windows 10. both OS were working perfectly. I started loving Ubuntu and thought there would be no need of windows in future, so I deleted windows partition from Ubuntu. But now I wanted to UNDO this and to reinstall windows with dualboot environment. Although I deleted Windows partition, In splash screen there is option of windows but now I can't boot into windows. How can I copy necessary files from windows-iso file from DVD to its partition from ubuntu?

How can I UNDO this and how to make both OS working as it was before?

system-installation grub2 dual-boot partitioning windows-10
  • 0 Answers
  • 107 Views
Martin Hope
GD- Ganesh Deshmukh
Asked: 2018-02-12 09:24:50 +0800 CST

Can't reinstall MongoDB on Ubuntu 17

  • 10

I uninstalled before MongoDB but now I can't install it due to this error:

dpkg-deb: error: subprocess paste was killed by signal (Broken pipe).

I ran this command -> sudo apt-get install -y mongodb-org

My terminal output is following:

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libboost-chrono1.62.0 libboost-program-options1.62.0 libgoogle-perftools4
libtcmalloc-minimal4 libunwind8 libyaml-cpp0.5v5 linux-headers-4.13.0-16
linux-headers-4.13.0-16-generic linux-headers-4.13.0-21
linux-headers-4.13.0-21-generic linux-image-4.13.0-16-generic
linux-image-4.13.0-21-generic linux-image-extra-4.13.0-16-generic
linux-image-extra-4.13.0-21-generic linux-signed-image-4.13.0-16-generic
linux-signed-image-4.13.0-21-generic mongo-tools
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
mongodb-org-mongos mongodb-org-server mongodb-org-shell mongodb-org-tools
The following NEW packages will be installed:
mongodb-org mongodb-org-mongos mongodb-org-server mongodb-org-shell
mongodb-org-tools
0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/66.8 MB of archives.
After this operation, 276 MB of additional disk space will be used.
Selecting previously unselected package mongodb-org-shell.
(Reading database ... 316734 files and directories currently installed.)
Preparing to unpack .../mongodb-org-shell_3.6.2_amd64.deb ...
Unpacking mongodb-org-shell (3.6.2) ...
Selecting previously unselected package mongodb-org-server.
Preparing to unpack .../mongodb-org-server_3.6.2_amd64.deb ...
Unpacking mongodb-org-server (3.6.2) ...
Selecting previously unselected package mongodb-org-mongos.
Preparing to unpack .../mongodb-org-mongos_3.6.2_amd64.deb ...
Unpacking mongodb-org-mongos (3.6.2) ...
Preparing to unpack .../mongodb-org-tools_3.6.2_amd64.deb ...
Unpacking mongodb-org-tools (3.6.2) ...
dpkg: error processing archive /var/cache/apt/archives/mongodb-org-tools_3.6.2_amd64.deb (--unpack):
trying to overwrite '/usr/bin/bsondump', which is also in package mongo-tools 3.2.11-1
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Selecting previously unselected package mongodb-org.
Preparing to unpack .../mongodb-org_3.6.2_amd64.deb ...
Unpacking mongodb-org (3.6.2) ...
Errors were encountered while processing:
/var/cache/apt/archives/mongodb-org-tools_3.6.2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

After running apt --fix-broken install, the output is as follows:

apt --fix-broken install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  libboost-chrono1.62.0 libboost-program-options1.62.0 libgoogle-perftools4 libtcmalloc-minimal4 libunwind8 libyaml-cpp0.5v5 linux-headers-4.13.0-16
  linux-headers-4.13.0-16-generic linux-headers-4.13.0-21 linux-headers-4.13.0-21-generic linux-image-4.13.0-16-generic
  linux-image-4.13.0-21-generic linux-image-extra-4.13.0-16-generic linux-image-extra-4.13.0-21-generic linux-signed-image-4.13.0-16-generic
  linux-signed-image-4.13.0-21-generic mongo-tools
Use 'apt autoremove' to remove them.
The following additional packages will be installed:
  mongodb-org-tools
The following NEW packages will be installed:
  mongodb-org-tools
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
4 not fully installed or removed.
Need to get 0 B/34.9 MB of archives.
After this operation, 150 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 316761 files and directories currently installed.)
Preparing to unpack .../mongodb-org-tools_3.6.2_amd64.deb ...
Unpacking mongodb-org-tools (3.6.2) ...
dpkg: error processing archive /var/cache/apt/archives/mongodb-org-tools_3.6.2_amd64.deb (--unpack):
 trying to overwrite '/usr/bin/bsondump', which is also in package mongo-tools 3.2.11-1
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/mongodb-org-tools_3.6.2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
server mongodb 17.04 npm
  • 1 Answers
  • 17587 Views

Sidebar

Stats

  • Questions 681965
  • Answers 980273
  • Best Answers 280204
  • Users 287326
  • Popular
  • Answers
  • Marko Smith

    How to install Google Chrome

    • 8 Answers
  • Marko Smith

    Is there a command to list all users? Also to add, delete, modify users, in the terminal?

    • 9 Answers
  • Marko Smith

    How to delete a non-empty directory in Terminal?

    • 4 Answers
  • Marko Smith

    How to unzip a zip file from the Terminal?

    • 9 Answers
  • Marko Smith

    How can I copy the contents of a folder to another folder in a different directory using terminal?

    • 8 Answers
  • Marko Smith

    How do I install a .deb file via the command line?

    • 11 Answers
  • Marko Smith

    How do I run .sh scripts?

    • 16 Answers
  • Marko Smith

    How do I install a .tar.gz (or .tar.bz2) file?

    • 14 Answers
  • Marko Smith

    How to list all installed packages

    • 24 Answers
  • Marko Smith

    Unable to lock the administration directory (/var/lib/dpkg/) is another process using it?

    • 25 Answers
  • Martin Hope
    Flimm How can I use docker without sudo? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    led-Zepp How do I save terminal output to a file? 2014-02-15 11:49:07 +0800 CST
  • Martin Hope
    ubuntu-nerd How to unzip a zip file from the Terminal? 2011-12-11 20:37:54 +0800 CST
  • Martin Hope
    pandisvezia How can I copy the contents of a folder to another folder in a different directory using terminal? 2011-12-11 17:19:37 +0800 CST
  • Martin Hope
    TheXed How do I install a .deb file via the command line? 2011-05-07 09:40:28 +0800 CST
  • Martin Hope
    Ivan How to list all installed packages 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra Unable to lock the administration directory (/var/lib/dpkg/) is another process using it? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry How do I determine the total size of a directory (folder) from the command line? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher "The following packages have been kept back:" Why and how do I solve it? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford How can PPAs be removed? 2010-07-30 01:09:42 +0800 CST

Related Questions

Trending Tags

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • Home
  • Questions
    • Hot Questions
    • New Questions
  • Tags
  • Help

Footer

SnapOverflow

About Us

  • About Us
  • Contact Us

Legal Stuff

  • Privacy Policy

Help

© 2022 SOF-TR. All Rights Reserve